This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Is it possible to build a cross compiler supporting both big & little endian?


On 09/06/2009 05:59 PM, Joachim Nilsson wrote:
Hi!

We run both little and big endian Arm targets at work. Currently both
are Arm9 so naturally I started thinking about creating one single
toolchain to bind them all...

I put together a standard arm-unknown-linux-uclibc with crosstool and
building the kernel worked fine using "-mbig-endian -mcpu=xscale
-mtune=xscale -msoft-float", but when I reached userspace the first
effort at linking with libgcc of course failed.

So I wonder, is it even possible to maintain one toolchain supporting
different endians?

Generally speaking, of course it is. What you are looking for is a big/little endian multilib'ed toolchains.


Ralf


-- For unsubscribe information see http://sourceware.org/lists.html#faq


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