Compilers for Linux on Power

Advanced compiler and optimization technologies

GNU Compiler Collection (GCC)

The GNU Compiler Collection (GCC) is the standard set of compilers shipped with all Enterprise Linux distributions. IBM’s Linux on Power Toolchain team supports GCC for Linux on Power, providing enablement and exploitation of new features for each processor generation, and improved code generation for better performance.

GCC includes:

  • C compiler (gcc)
  • C++ compiler (g++)
  • Fortran compiler (gfortran)
  • Go compiler (gccgo)

Packages in Linux distributions are built with the same GCC compilers that are shipped with the distribution. However, for stability reasons, GCC is not updated to new versions over time on enterprise distributions. The default GCC on a system becomes outdated and is unable to support all of the features for more modern processors. In order to compile production quality code, use the most recent version of GCC that is available.

Tell me more…

Install the IBM Advance Toolchain

A new version of the Advance Toolchain is released each August, based upon the most recent GCC compilers and core system libraries available. The Advance Toolchain is free to download, and is fully supported through IBM’s Support Line for Linux Offerings. IBM often includes additional optimizations in the Advance Toolchain that were not completed in time for the base release.

Find out more about IBM Advance toolchain

Download and install the source

If you are a do-it-yourselfer, you can also download the source for the most recent official GCC releases from the Free Software Foundation’s website.

GCC releases

Instructions for installing the software

Sample configuration command

$ configure --enable-languages=c,c++,fortran,objc,obj-c++,go --with-cpu=power8 --disable-multilib --with-long-double-128 --prefix=/path/to/install-directory    

Find recommended compiler options

Check out these compiler options for the best performance.

Compiler optimization options quick reference guide


Welcome to the GCC for Linux on Power user community!