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: Cross Compiler question (the essence of a Canadian Cross Compiler)


J. Robert Wyatt wrote:

First, I'd like to say thanks for crosstool!!! I've done the work without it
and now I'm hooked!!!!! Thanks Dan!

Now for the question ...

I'd like to build a gcc compiler on a i686 system for ARMv5b that runs on
the ARMv5b. I've got the corsstool-0.37 to build the armv5b compiler that
runs on i686, but the next step is to use that compiler to build a compiler
that can run natively on the ARM platform (Linux 2.4.21 if that is of
interest). This last step is confusing since I don't see the three step
requirement.

Basically, the --build is the i686 system and the --host and --target are
one in the same ... want a compiler that runs on ARM to generate for ARM. Is
this essentially a Canadian Cross compiler? If so, do I really have to build
three compilers, when the first two are really the same?


use the cross compiler for armv5b to compile the native compiler for armv5b
CC=<your cross compiler which can generate code for armv5b>
--build=i686
--target=armv5b
--host=armv5b

the resulting compiler should be good for running on armv5b system and it will generate code for armv5b

Thanks,
Robert

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com





------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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