There are big-endian machines other than z. Shouldn't you investigate how the issue is dealt with outside of z before asking for z exclusive language extensions?
________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of John McKown <[email protected]> Sent: Wednesday, June 14, 2017 8:30 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". -- Veni, Vidi, VISA: I came, I saw, I did a little shopping. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
