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
availability on wesley
version | date installed | setup module |
---|---|---|
4.6.3 | june 5, 2012 | gcc or gcc/4.6.3 |
4.4.7 | july 10, 2012 | gcc/4.4.7 |
4.1.2 | june, 2011 | none, 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)