Scripts to download and compile a freestanding (nostdlib) binutils + gcc toolchain. This is based on the guide available here http://wiki.osdev.org/GCC_Cross-Compiler
- the following packages need to be installed:
- bison
- flex
- libint-devel
- libgmp-devel
- libmpfr-devel
- libmpc-devel
- texinfo (depending on platform)
You can install these automatically on debian/ubuntu with install-deps-deb.sh
- edit env.sh to set your target platform & where to install to. user directory installation is recommended
- ./build.sh
- wait till done... on beefy modern machines, ~10 minutes is reasonable
- source env.sh
- $TARGET-gcc --version