OAR

RTEMS GNU Tools On-Line Library


Cross-Compiler

PREV UP NEXT Bookshelf Using and Porting the GNU Compiler Collection (GCC)

3.4: Building and Installing a Cross-Compiler

GNU CC can function as a cross-compiler for many machines, but not all.

Since GNU CC generates assembler code, you probably need a cross-assembler that GNU CC can run, in order to produce object files. If you want to link on other than the target machine, you need a cross-linker as well. You also need header files and libraries suitable for the target machine that you can install on the host machine.

  • Steps of Cross Using a cross-compiler involves several steps that may be carried out on different machines.
  • Configure Cross Configuring a cross-compiler.
  • Tools and Libraries Where to put the linker and assembler, and the C library.
  • Cross Headers Finding and installing header files for a cross-compiler.
  • Cross Runtime Supplying arithmetic runtime routines (`libgcc1.a').
  • Build Cross Actually compiling the cross-compiler.

  • PREV UP NEXT Bookshelf Using and Porting the GNU Compiler Collection (GCC)

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.