Gnu Compiler Collection

You will notice Multiple versions of the Gnu Compiler Suite are available.  For the most part the only differences are improved optimizations for newer processors in the newer version of the compiler suite.  It is highly recommended to use the latest version of the compiler, but not necessary.  Our Campus Linux CLC Machines will have only the latest version.  The version on campus workstations will vary.

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.

We strive to provide regular, high quality releases, which we want to work well on a variety of native and cross targets (including GNU/Linux), and encourage everyone to contribute changes or help testing GCC. Our sources are readily and freely available via SVN and weekly snapshots.

Major decisions about GCC are made by the steering committee, guided by the mission statement.

  • Overview 4.7-4.8
  • Overview 4.4-4.6
  • HPC Docs
  • HPC Tutorials
  • Linux Tutorial
  • Linux Docs

Overview 4.7-4.8

GCC 4.8.3 manuals:

GCC 4.7.4 manuals:

Overview 4.4-4.6

GCC 4.6.4 manuals:

GCC 4.5.4 manuals:

GCC 4.4.7 manuals:

HPC Docs

Just like most software on the HPC the Intel Compiler Suite requires you to load a module in order to determine which version of the compiler suite you want to use.

Here is the list of available options for the Intel Compiler on the cluster including a brief description:

Module Name Description
No Module The Base Gnu 4.4 Compiler Collextion without mpi libraries.
gcc/45 The Base Gnu 4.5 Compiler Collection without mpi libraries.
gcc/46 The Base Gnu 4.6 Compiler Collection without mpi libraries.
gcc/47 The Base Gnu 4.7 Compiler Collection without mpi libraries.
openmpi/gnu The Base Gnu 4.4 Compiler Collection with OpenMPI libraries.
openmpi/gcc45 The Base Gnu 4.5 Compiler Collection with OpenMPI libraries.
openmpi/gcc46 The Base Gnu 4.6 Compiler Collection with OpenMPI libraries.
openmpi/gcc47 The Base Gnu 4.7 Compiler Collection with OpenMPI libraries.
mpich2/gnu The Base Gnu 4.4 Compiler Collection with MPICH2 libraries.
lammpi/gnu The Base Gnu 4.4 Compiler Collection with LAM/MPI libraries.

HPC Tutorials

Linux Tutorial

Here is a full example of using Gnu Fortran compiler on Linux CLC systems.

First you must create a source code file.  The screen shot below shows example code by using cat to print it to the screen.

gfortran sample

Linux Docs

On our Campus Linux CLC systems we have the GNU  installed as one of the default compilers so you can compile your standard C, C++ and Fortran code with gcc, g++, and gfortan respectively.

Here is a sample terminal window showing code compilation:

gnu compiler collection