This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]