public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Is it possible to build a cross compiler supporting both big & little  endian?
@ 2009-09-06 15:59 Joachim Nilsson
  2009-09-06 16:14 ` Yann E. MORIN
  2009-09-06 16:20 ` Ralf Corsepius
  0 siblings, 2 replies; 4+ messages in thread
From: Joachim Nilsson @ 2009-09-06 15:59 UTC (permalink / raw)
  To: crossgcc

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?

Regards
  /Jocke

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to build a cross compiler supporting both big & little  endian?
  2009-09-06 15:59 Is it possible to build a cross compiler supporting both big & little endian? Joachim Nilsson
@ 2009-09-06 16:14 ` Yann E. MORIN
  2009-09-06 16:27   ` Joachim Nilsson
  2009-09-06 16:20 ` Ralf Corsepius
  1 sibling, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2009-09-06 16:14 UTC (permalink / raw)
  To: crossgcc; +Cc: Joachim Nilsson

Joachim,
All,

On Sunday 06 September 2009 17:59:38 Joachim Nilsson wrote:
> 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...

Hehe! :-)

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

It is theoretically possible. That's called "multilib".
But crosstool-NG does not support that.

There has been some discussions about the issue; search the archives.
The latest was in last July, IIRC.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to build a cross compiler supporting both big  & little  endian?
  2009-09-06 15:59 Is it possible to build a cross compiler supporting both big & little endian? Joachim Nilsson
  2009-09-06 16:14 ` Yann E. MORIN
@ 2009-09-06 16:20 ` Ralf Corsepius
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Corsepius @ 2009-09-06 16:20 UTC (permalink / raw)
  To: Joachim Nilsson; +Cc: crossgcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to build a cross compiler supporting both big  & little  endian?
  2009-09-06 16:14 ` Yann E. MORIN
@ 2009-09-06 16:27   ` Joachim Nilsson
  0 siblings, 0 replies; 4+ messages in thread
From: Joachim Nilsson @ 2009-09-06 16:27 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

Hi Yann & Ralf!

On 09/06/2009 06:14 PM, Yann E. MORIN wrote:
> On Sunday 06 September 2009 17:59:38 Joachim Nilsson wrote:
>> So I wonder, is it even possible to maintain one toolchain supporting
>> different endians?
> It is theoretically possible. That's called "multilib".

Aha, thanks!

> There has been some discussions about the issue; search the archives.
> The latest was in last July, IIRC.

Yep, found some now.  It helps to have a keyword or such to pull at.
:-)

Regards
  /Jocke

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-06 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-06 15:59 Is it possible to build a cross compiler supporting both big & little endian? Joachim Nilsson
2009-09-06 16:14 ` Yann E. MORIN
2009-09-06 16:27   ` Joachim Nilsson
2009-09-06 16:20 ` Ralf Corsepius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).