GNU Compilers

GNU C, C++, and Fortran Compilers

The GNU C/C++ and Fortran compilers are provided on the HPC and Spear as an alternative to the Intel compilers. They are also available on Condor.

GNU compilers are always available in the shell path. There is no need to include any environment modules, unless you need to use gnu-mvapich, gnu-mvapich2, or gnu-openmpi libraries.

Supported Languages

C and C++

# gcc

Fortran

# gfortran

Debugging

The GNU compilers include a debugger:

# gdb

More Information

For quick help about each GNU compiler, type:

# gcc --help
# gfortran --help

More information about the GNU compilers are available on the manpages:

# man gcc
# man gfortran

A comprehensive guide to the GCC compiler is available online