GCC

From ScientificComputing
Jump to: navigation, search

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

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

Environment modules

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

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