Attention
Following the recent operating system upgrade, software listings and module load commands now reflect the upgraded system. Some examples and notices are still being updated and may contain outdated guidance.
GNU Compiler Collection (gcc)
The GNU Compiler Collection (gcc) is a widely used, free collection of compilers for C (gcc), C++ (g++) and Fortran (gfortran).
It is possible to switch versions of the gcc compiler suite using modules.
After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:
srun --pty bash -i
then choose the version of the compiler you wish to use by running one of the following lines:
module load GCC/15.2.0
module load GCC/14.3.0
module load GCC/14.2.0
module load GCC/13.3.0
module load GCC/13.2.0
module load GCC/12.3.0
module load GCC/12.2.0
module load GCC/15.2.0
module load GCC/14.3.0
module load GCC/12.3.0
module load GCC/12.2.0
Confirm that you’ve loaded the version of gcc you wanted using gcc -v. See matching foss toolchains
Language support
Which version(s) of GCC support which features of the C99 and C11 standards?
Which version(s) of GCC support which features of the C++98, C++11, C++14 and C++17 standards?
Documentation
man pages are available on the system.
Once you have loaded the required version of gcc, type
man gcc