[Bug target/17043] Can't build a compiler that works for big and littleendian targets
wilson at specifixinc dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 16 23:20:00 GMT 2004
------- Additional Comments From wilson at specifixinc dot com 2004-08-16 23:20 -------
Subject: Re: New: Can't build a compiler that works for
big and littleendian targets
peterc at gelato dot unsw dot edu dot au wrote:
> arm-linux-gcc --mbigendian -c
Normally linux targets aren't bi-endian. A little-endian kernel won't
run big-endian code and vice versa, so there is little point in making
them bi-endian. And if the native compiler isn't bi-endian, then a
cross compiler won't be either. You may have to do a litting porting
work if you really need this.
There is also the question of whether you have bi-endian system
libraries, and if so, how they are organized. Also, I'd recommend
against use of --prefix=/usr for a cross compiler, and I'd suggest using
--sysroot= to specify where the target libraries and header files are.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17043
More information about the Gcc-bugs
mailing list