Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.03 KB

README.md

File metadata and controls

19 lines (17 loc) · 1.03 KB

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