PREV UP NEXT Using and Porting GNU CC

4.3.2: Configuring a Cross-Compiler

To build GNU CC as a cross-compiler, you start out by running configure. You must specify two different configurations, the host and the target. Use the `--host=host' option for the host and `--target=target' to specify the target type. For example, here is how to configure for a cross-compiler that runs on a hypothetical Intel 386 system and produces code for an HP 68030 system running BSD:

./configure --target=m68k-hp-bsd4.3 --host=i386-bozotheclone-bsd4.3