This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Words endian is different in registers than in memory
- From: Anders Ådland <adland at stud dot ntnu dot no>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Feb 2003 17:09:06 +0100 (CET)
- Subject: Words endian is different in registers than in memory
Hi
I am porting GCC to a new architecture and have one problem when defining
WORDS_BIG_ENDIAN because "GCC fundamentally assumes that the order of
words in memory is the same as the order in registers." In my case it
should be defined as 0 when working with memory and 1 when working with
registers. Can I make this macro change during compilation? How?
Anders