Difference between revisions of "GNU Compiler"

From HPC users
Jump to navigationJump to search
(Created page with "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 G...")
 
 
(One intermediate revision by one other user not shown)
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
<center>
{| 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:
|-
|-
|}
|}
</center>
 




Line 31: Line 30:
* fast compilation
* fast compilation
* performance of resulting C++ usually good
* performance of resulting C++ usually good
most open source software tested with GNU
* most open source software tested with GNU




== Disadvantages ==
== Disadvantages ==
* optimization of code is moderate: performance of C, Fortran code can be moderate
* optimization of code is moderate: performance of C, Fortran code can be moderate

Latest revision as of 09: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