Difference between revisions of "GNU Compiler 2016"

From HPC users
Jump to navigationJump to search
Line 9: Line 9:
To load the module of your choice type e.g.
To load the module of your choice type e.g.
   module load gcc/4.9.4-2.25
   module load gcc/4.9.4-2.25
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;"

Revision as of 09:56, 17 February 2017

The GNU Compilers are available as module and as part of the operating system. To see the other available versions of the GNU Compilers type

 module av gcc

which currently shows

---------- /cm/local/modulefiles ----------
  gcc/6.1.0
---------- /cm/shared/uniol/modules/compiler ----------
  GCC/4.9.4-2.25    GCC/5.4.0-2.26    GCC/6.2.0-2.27 (D)

To load the module of your choice type e.g.

 module load gcc/4.9.4-2.25

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