Skip to content

DexterHaslem/gcc-xc-bootstrapper

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages