But you _can_ address data above the bar in "pure" C. Just compile and link
the C code as 64-bit.

In article <[email protected]> you wrote:
> So far as I have seen, the documentation does not consider nor address the
> situation I have. It considers all-64-bit C with all-64-bit assembler, or
> all-31-bit C with all-31-bit assembler. I have 31-bit assembler with a few
> 64-bit instructions, one of which happened to S0C4. I suppose one (or IBM)
> could take the attitude "that's not allowed." But gee, why do people link
> from C to assembler to begin with? To do things they cannot do in pure C! I
> would say that addressing some data above the bar is a valid case of that.

> Charles


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Peter Hunkeler
> Sent: Monday, August 28, 2017 11:49 PM
> To: [email protected]
> Subject: AW: Re: Can AMODE 31 C/C++ get a signal on a S0C1/4 in AMODE 64
> assembler?

> >If I had nothing better to do I would open an RFE on that. Even assuming
> AMODE 31, how can LE assume that the high halves of the registers are of no
> debugging value? 64-bit register arithmetic -- or even using the high halves
> of registers as a temporary holding area -- is a valid technique even in the
> absence of AMODE 64. The C/C++ compiler itself does so. 
>  

> Have a look at the "Language Environment Programming Guide for 64-bit
> Virtual Addressing Mode" manual, chapter "Chapter 21. Assembler
> considerations". It has some description about AMODE 64 assembler. I browsed
> it quickly, only. It talks about XPLINK convention to be a prerequisite for
> AMODE 64 assembler in a LE supported way. I never did anything with XPLINK,
> so I cannot say how much effort this is, but maybe you can change your
> assembler code to be LE AMODE 64 compatible.
> While your "SDWA hack" seems to work (today), it is cheating, as you said
> yourself. May hurt you, or your customer in the future. 


> --
> Peter Hunkeler

-- 
Don Poitras - SAS Development  -  SAS Institute Inc. - SAS Campus Drive
[email protected]           (919) 531-5637                Cary, NC 27513

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to