GCC

From ScientificComputing
Jump to: navigation, search

Please note that this application page is referring to the old CentOS software stack which is obsolete and does not work any more with the new Ubuntu setup. You can find an overview on the Ubuntu software stack on this wiki page.

Category

Development, Compiler

Description

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.

Available versions (Euler, old software stack)

Legacy versions Supported versions New versions
4.7.4 4.4.7, 4.8.2, 4.9.2 4.8.4, 5.2.0, 6.2.0, 6.3.0

Please note that this page refers to installations from the old software stack. There are two software stacks on Euler. Newer versions of software are found in the new software stack.

Environment modules (Euler, old software stack)

Version Module load command Additional modules loaded automatically
4.7.4 module load legacy gcc/4.7.4
4.4.7 module load gcc/4.4.7
4.8.2 module load gcc/4.8.2
4.9.2 module load gcc/4.9.2
4.8.4 module load new gcc/4.8.4
5.2.0 module load new gcc/5.2.0
6.2.0 module load new gcc/6.2.0
6.3.0 module load new gcc/6.3.0

Please note that this page refers to installations from the old software stack. There are two software stacks on Euler. Newer versions of software are found in the new software stack.

License information

GPLv3 or later with exception
LGPLv2.1 or later with exception

Notes

The GCC module sets several environment variables, which point to the different executables for the available compilers.
  • $CC → C compiler gcc
  • $CXX → C++ compiler g++
  • $FC, $F90, $F77 → Fortran compiler gfortran
  • $CPP → C pre-processor cpp
The path's to the executables will be set according to the GCC version that is loaded.

Links

https://gcc.gnu.org/

https://en.wikipedia.org/wiki/GNU_Compiler_Collection
https://www.youtube.com/channel/UC0PVFIrh1o6hl1-QL_O1QEg