This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Robust detection of endianness at compile time.
- From: Ian Lance Taylor <iant at google dot com>
- To: Nick Maclaren <nmm1 at cus dot cam dot ac dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 31 Jul 2007 07:26:39 -0700
- Subject: Re: Robust detection of endianness at compile time.
- References: <E1IFrmm-0007cT-BM@libra.cus.cam.ac.uk>
Nick Maclaren <nmm1@cus.cam.ac.uk> writes:
> If you are faced with doing this for a system with integers that
> don't match C99's model, or with floating-point that doesn't have
> a base of 2 or 16, real numbers that are not floating-point or
> anything similar, then please contact me by Email before I retire.
> That isn't entirely a joke :-)
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.
Ian