Build native compiler using cross compiler??

Andrea 'Fyre Wyzard' Bocci fwyzard@inwind.it
Thu Dec 27 18:27:00 GMT 2001


At 14.46 27/12/2001 (GMT +0800), Aladdin Chang wrote:
>Dear all,
>
>Is it possible to build a native compiler  for MIPS
>using a cross compiler like mipsel-linux-gcc ?
>
>
>Aladdin

I think so.
First build a cross compiler (with the libraries for the target system).
Then use that to build a compiler for ther target system that'll run on the 
target system.

Acutally, I have no idea how to configure the second compiler.
Have a look at how canadian cross compiler are built, that might give you a 
hint (http://www.objsw.com/CrossGCC/FAQ-4.html#ss4.9).
Someone with more experien in cross compiler might help here, also.

HTH, fwyzard



More information about the Gcc-help mailing list