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.

Tony H.

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

Reply via email to