This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: CPP macro for Byte-order
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: Joe Buck <jbuck at synopsys dot com>, gdr at codesourcery dot com (Gabriel Dos Reis), gcc at gcc dot gnu dot org
- Date: 19 Jan 2002 02:46:52 +0100
- Subject: Re: CPP macro for Byte-order
- Organization: CodeSourcery, LLC
- References: <200201181024.KAA29301@cam-mail2.cambridge.arm.com>
Richard Earnshaw <rearnsha@arm.com> writes:
| >
| > On the other hand, the gcc backends define BITS_BIG_ENDIAN,
| > BYTES_BIG_ENDIAN, and WORDS_BIG_ENDIAN (you would want BYTES_BIG_ENDIAN to
| > solve the problem of detecting NaNs and the like).
|
| It is a common mistake to confuse the INTEGER endian settings with the
| requirements for floating point numbers. The two need not be related, and
| on many architectures aren't.
|
| Please keep these separate.
I understand the conceptual difference with the two. But _concretely_
are there supported plateforms where they do actually differ? What
are your suggestions?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com