There are multiple flavors of GCC, the GNU Compiler Collection , for the Arm architecture, and for different use cases. TO determine which flavor you need, consider the variables below:

  • Target environment where you want the compiled software to run: bare metal or real time operating system (RTOS), Linux kernel and applications, Android applications, or Windows applications.

  • Host machine, where you will do the compiling: Windows, Linux, or macOS

  • Architecture of the host machine: x86 or Arm

This section provides installation instructions for GCC targeting the Arm architecture.

Navigate to the section of interest.

  • GCC as a native compiler on Arm Linux Use this option to install GCC using the Linux package manager and build applications on an Arm Linux system.

  • GCC as a cross-compiler Use this option to install GCC using the Linux package manager and build bare metal applications by cross compiling them for the Arm architecture from an x86 or Arm Linux host machine. Also, use this option to install and compile Linux applications from an x86 host for an Arm target.

  • GCC from the Arm GNU Toolchain Use this option to download an install a version of GCC produced by Arm. It is available from the Arm Developer website and works on Linux, Windows, and macOS host machines. It supports bare-metal and Linux targets.

Select a specific tool for install instructions:

Native compiler

Cross-compiler

Arm GNU Toolchain