These scripts create a cross-compiler toolchain in your
This kind of cross-compiler is mostly useful for basic Operating System developpment.
These scripts install the following things in the toolchain :
- binutils (ld, ...)
- gcc for C and C++
Supported cross-compiling architectures
arm(not maintained) : use
The scripts for both architecture are very similar, feel free to adapt them to other architectures.
Setting up the cross-compiler
- Create a directory named
usrin your home directory.
- Add the following line to your
cross-<arch>.shfor the architecture you target. Go on the internet and read some useless stuff, this step is long.
The compiler is available as
*-g++, where * is one of the prefixes listed above (ex: i586-elf-gcc).