Win $20,000. Help build the future of education. Answer the call. Learn more

GNU Compiler Collection (GCC) for Linux on IBM Power Systems

The GNU Compiler Collection (GCC) is the standard set of compilers shipped with all Enterprise Linux distributions. The IBM 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. One way to do this is to install the most recent version of the IBM Advance Toolchain for Linux on Power.

Download Advance Toolchain for Linux on Power to get latest version of GCC

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 the IBM Support Line for Linux Offerings. IBM often includes additional optimizations in the Advance Toolchain that were not completed in time for the base release. Learn more.

Download and install GCC from 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.

Sample configuration command:

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

Check out the compiler optimization options quick reference guide to get the best performance from your compiler.