Compilers
The most commonly used languages in numerical methods programming are Fortran and C/C++. Gnu, Intel,PGI and NAG compilers are available on the Nottingham system. The table below summarises the commands relevant to each compiler.
C | C++ | F77 | F90 | |
---|---|---|---|---|
Gnu | gcc | g++ | gfortran | gfortran |
Intel | icc | icpc | ifort | ifort |
PGI | pgcc | pgCC | pgf77 | pgf90 |
NAG | N/A | N/A | /software/nag/for |
The Intel and PGI compilers are designed to produce code which is particularly efficient. The NAG compiler is needed for programs using the NAG libraries, but can be used for any Fortran code.
Compiler commands have a range of options to optimise performance, and some experimentation is worthwhile to see which are best for a given application. Information on the options is available via the relevent 'man' commands. Users of PGI and Intel compilers should load the relevant modules (see Environments).