DexterHaslem / gcc-xc-bootstrapper

scripts to download and compile a freestanding (nostdlib) binutils + gcc toolchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gcc-xc-bootstrap

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

Prerequisites

  • 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

Usage

  1. edit env.sh to set your target platform & where to install to. user directory installation is recommended
  2. ./build.sh
  3. wait till done... on beefy modern machines, ~10 minutes is reasonable
  4. source env.sh
  5. $TARGET-gcc --version

About

scripts to download and compile a freestanding (nostdlib) binutils + gcc toolchain


Languages

Language:Shell 100.0%