Name Modified Size InfoDownloads / Week
Parent folder
README-for-gcc-11.1.0-arm-eabi-apple-darwin15.md 2021-05-04 2.7 kB
gcc-11.1.0-arm-eabi-apple-darwin15.pkg 2021-05-04 394.0 MB
Totals: 2 Items   394.0 MB 0

This is GCC 11.1.0, rebuilt as a cross-compiler from macOS to arm-eabi (tested with the Cortex-M3 as found on the Arduino Due, the Cortex-M4 as found on the STMicroelectronics STM32F4 Discovery and STM32F429I Discovery boards and the Cortex-M0 as found in the nRF51 used in the BBC micro:bit; but note that GCC has implemented multilib support for other ARM chips).

Other software included:

  • binutils-2.36.1
  • newlib-4.1.0
  • GDB 10.2 with the patch here and here.

The compiler comes with no Ada Runtime System (RTS). See the Cortex GNAT Run Time Systems project for candidates.

NOTE: the compiler/RTS interface is the same as for GNAT CE 2020; Cortex GNAT RTS needs to be built with RELEASE=gcc11 (this is not the default).

The compiler is known to run on El Capitan and Big Sur; it's expected to run also on releases between.

The compiler was built with

--build=x86_64-apple-darwin15
--disable-libada
--disable-libcc1
--disable-libcilkrts
--disable-libffi
--disable-libgomp
--disable-libmudflap
--disable-libquadmath
--disable-libsanitizer
--disable-libssp
--disable-libstdcxx-pch
--disable-lto
--disable-nls
--disable-shared
--disable-threads
--disable-tls
--enable-languages=c,c++,ada
--prefix=/Volumes/Miscellaneous1/arm/gcc-11.1.0
--target=arm-eabi
--with-gnu-as
--with-gnu-ld
--with-libgloss
--with-newlib
--with-stage1-ldflags='-static-libstdc++ -static-libgcc -Wl,-headerpad_max_install_names'
--with-system-zlib
--without-libiconv-prefix
--with-multilib-list=rmprofile

The --prefix setting was part of the build process, to avoid installing untested builds on top of a working compiler.

The --with-stage1-ldflags setting supports installing the compiler in a location of your choice (so long as it is on top of a GCC 11.1.0 host compiler).

The --with-multilib-list setting supports the following:

Cortex-M0, Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M7, Cortex-M23, Cortex-M33, Cortex-R4, Cortex-R5, Cortex-R7, Cortex-R8 and Cortex-R52.

Install

Xcode is required.

Download the binary .pkg. It's not signed, so don't double-click on it; instead, right-click on it and Open. Accept the warning. You will be guided through the installation.

Notes

The software was built using the building-arm-eabi scripts at Github, tag 11.1.0.

Source: README-for-gcc-11.1.0-arm-eabi-apple-darwin15.md, updated 2021-05-04