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:
- git clone [email protected]:joshuanapoli/arm-none-eabi-gcc.git
- cd arm-none-eabi-gcc
- ./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".