Script for building a gcc cross-compiler for Cortex-M under MinGW.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

GCC is a great tool-chain for ARM Cortex-M3 architecture embedded projects. It is a pain to set up if you are stuck on a Windows PC. Mentor Graphics provides an ARM build of GCC. Embedded systems often require customization to details like heap allocation and C++ exceptions. This project is a bash script for building a GCC cross-compiler on a MinGW host. The compiler targets arm-non-eabi with the thumb2 instruction set. This configuration is used for development on the ARM Cortex-M3 architecture.

To use this script:

  1. git clone
  2. cd arm-none-eabi-gcc
  3. ./build-arm-none-ebai-gcc

By default, the compiler will be installed under /opt/gnu/gcc-4.7.2. You may want to customize the installation path and versions at the beginning of the script. Try restarting the build if it fails to commit memory from the "cygwin heap".