Would be a very amusing C++ exercise to build some structs littleend16_t and so 
forth and develop overrides for +, =, ++, etc. If you did it right it would be 
very cute.

I guess something ditto for a string_ascii_t type but I am less enamored of 
that exercise.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of John McKown
Sent: Wednesday, June 14, 2017 7:31 AM
To: [email protected]
Subject: RFE? xlc compile option for C integers to be "Intel compat" or 
Little-Endian

This is just a kind of "speculation" on my part. It is to avoid problems when 
doing transfers of data between z/OS and Intel based platforms. I.e.
when I want to do a binary transfer of a file from Linux or <blech> Windows to 
z/OS for processing, perhaps due to the complexity of the data and the "non 
z/OS end" people being uncooperative about translating their data to something 
like non-binary XML or JSON.

I would like a way to specify that either specific integer variables be in 
"Little-Endian" format instead of the IBM z's "Big Endian". It seems to me that 
this should be "simple" by just using the "Load Reverse" and "Store Revere" 
instructions instead of the normal "Load" and "Store" instructions.
There are 2, 4, & 8 byte variants of these instructions.

In addition to the above, I am wondering about the reading/writing/processing 
of character data in ASCII instead of EBCDIC. I know of the ASCII compile 
option (which I can't review right now due the the abominable KC being 
unavailable right now - I am really PISSED at IBM for this unreliability). 
Well, enough on that digression. Does the ASCII compile option allow for 
reading, writing, and processing of ASCII char data? Of course, that I'd really 
like is a "simple" (not iconv) way to intermix ASCII & EBCDIC characters. And, 
yes, I know that I'm opening up a whole can of mega-worms with this "easy 
desire".

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

Reply via email to