Might be able to implement using __lrv() and friends. Charles
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Tony Harminc Sent: Wednesday, June 14, 2017 9:14 AM To: [email protected] Subject: Re: RFE? xlc compile option for C integers to be "Intel compat" or Little-Endian On 14 June 2017 at 11:20, Charles Mills <[email protected]> wrote: > 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. For all these proposals other than actual built-in knowledge by the compiler of the endianness, I think the question is whether the compiler will generate good code to do the conversions. There have been Load/Store Reversed instructions in various sizes since the original zArch, but I'll bet that the kind of C++ structs/classes you mention won't end up generating them. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
