This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LittleEndian
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, gcc at gcc dot gnu dot org, snowwolf at one2one-networks dot com
- Date: Tue, 30 Apr 2002 08:03:16 -0400 (EDT)
- Subject: Re: LittleEndian
> The above would make it possible to mark the places in the code where you
> assume endianness, and as a minimum halt compilation on architectures that
> doesnt support the assumed endian.
Any architecture can support either endianness in the weak sense of
supporting it for loads/stores. I agree with the utility of being
able to mark individual declarations. We did this in Realia COBOL
(COMP-4 was big endian, IBM compatible, COMP-5 was little endian,
Intel compatible, and a compiler flag determined whether plain
COMP was COMP-4 or COMP-5).