how to specify the endianess for target machine?

Wed May 25 01:49:00 GMT 2005

In order to port GCC-4.0.0 to a new target machine, how to specify the
endianness of the target machine? Through configure file or Header

I read the gccint, but can not find how to do it.

Any suggestion would be nice.

I can already compile the whole gcc-4.0.0 for my target machine,
however when I use the gcc to compile the newlib, I got an error:

Making all in stdlib
make[3]: Entering directory
-B/home/zeal/z64/build/dirnewlib/z6464-linux-elf/newlib/ -isystem
-isystem /home/zeal/z64/src/newlib-1.10.0/newlib/libc/include
-DPACKAGE=\"newlib\" -DVERSION=\"1.10.0\"  -I.
-I/home/zeal/z64/src/newlib-1.10.0/newlib/libc/stdlib  -O1
-fno-builtin      -O1 -w -c
In file included from
error: #error Endianess not declared!!
make[3]: *** [__adjust.o] Error 1

It seems this is because of the Endianess problem.


More information about the Gcc-help mailing list