Robust detection of endianness at compile time.

Nick Maclaren nmm1@cus.cam.ac.uk
Tue Jul 31 14:42:00 GMT 2007


Ian Lance Taylor <iant@google.com> wrote:
>
> In that case, you may interested in the decimal floating point work
> > which has been put into gcc and some new Intel and PowerPC
> processors.  This is floating point which uses base 10.

Yes, I already know about that.  Their representation is such that
decoding the endianness would be no harder than for IEEE 754.

It can get a lot harder than THAT!


Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



More information about the Gcc-help mailing list