Difference between revisions of "GNU Compiler"
From HPC users
Jump to navigationJump to search
Albensoeder (talk | contribs) |
|||
Line 7: | Line 7: | ||
module load gcc/4.8.1 | module load gcc/4.8.1 | ||
The commands for the available languages are | The commands for the available languages are | ||
{| style="background-color:#eeeeff;" cellpadding="10" border="1" cellspacing="0" | {| style="background-color:#eeeeff;" cellpadding="10" border="1" cellspacing="0" | ||
|- style="background-color:#ddddff;" | |- style="background-color:#ddddff;" | ||
Line 23: | Line 22: | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 08:37, 16 February 2017
The GNU Compilers are available as module and as part of the operating system. The compiler of the operating system is GNU 4.4.7. To see the other available versions of the GNU Compilers type
module av gcc
which currently shows
-------------------- /cm/shared/uniol/modulefiles/COMPILER --------------------- gcc/4.8.1
To load the module of your choice type e.g.
module load gcc/4.8.1
The commands for the available languages are
Name | Description |
---|---|
gcc | C compiler |
g++ | C++ compiler |
gfortran | Fortran compiler |
Advantages
- high availability, open source (free)
- new standards implemented
- fast compilation
- performance of resulting C++ usually good
- most open source software tested with GNU
Disadvantages
- optimization of code is moderate: performance of C, Fortran code can be moderate