Cross-GCC for Mac OS X
GCC is a free compiler for multiple programming languages and multiple
platforms. It is a part of the GNU Project.
It can be used as a cross-compiler, i.e. it runs on a computer to produce executable
code for another platform.
GCC supports C, C++, Objective C, fortran, java, ada, and possibly other
languages. It is the main compiler of several operating systems, including
GNU/Linux, FreeBSD, and Mac OS X.
A compiler is only one of the elements required to produce applications.
The compiler converts source code to assembly language, using header files.
Assembly code must be converted to machine code with an assembler and linked with
a linker together with libraries. GNU also provides the assembler, the linker and
related tools as binutils, and some libraries such as glibc.
Header files and other libraries are provided typically by the developers or
vendors of target operating systems. The complete set of programs and other
files required to compile applications for a specific target is known as a
toolchain.
This document describes how to build GCC as a cross-compiler running on
Mac OS X (the host) for other platforms (the targets).
You'll need the developer tools provided with Mac OS X.
|