GCC

GCC is a collection of compilers which share a common backend. The GCC compilers are the defacto standard free compilers for Linux, and are currently the only C/C++/Fortran compilers available on Wesley. Code generated by the GNU compilers generally performs quite well. (Requests for more optimized commercial compilers such as the Intel suite of compilers will be considered if user demand warrants).

Website and Documentation

http://gcc.gnu.org

Availability on Wesley

  Version    Date Installed    Setup Module  
4.6.3June 5, 2012gcc or gcc/4.6.3
4.4.7July 10, 2012gcc/4.4.7
4.1.2June, 2011NONE, CentOS default

The base operating system (CentOS 5) on wesley is pre-loaded with gcc 4.1.2. This is the default if you do not load any specific gcc module. To use a different version you must first load the appropriate module. The following example demonstrates setting up to use gcc 4.6.3:

wesley% gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

wesley% gfortran --version
GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

wesley% module load gcc/4.6.3

wesley% gcc --version
gcc (GCC) 4.6.3

wesley% gfortran --version
GNU Fortran (GCC) 4.6.3

wesley% module unload gcc

wesley% gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

wesley% gfortran --version
GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)