This is the mail archive of the gcc-bugs@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]

[Bug target/17043] Can't build a compiler that works for big and littleendian targets


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


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