Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Fortran programming language is governed by the J3 US Fortran Standards Committee.

How to use

The GNU Compiler Collection Fortran compiler command is gfortran.
The 8.4.1 version of GCC compiler package, including gfortran (located at /opt/nci/bin/gfortran), is the system built-in default version. As such, it does not require any module to load.

You can also check the other versions installed in Gadi with a module query:

Code Block
 $ module avail gcc

We normally recommend using the latest version available and always recommend to specify the version number with the module command:

Code Block
$ module load gcc/11.1.0

For more details on using modules see our software applications guide.

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.

See the documentation of gcc available at

The following would be of help when looking for gfortran compiler options:

Code Block
$ man gfortran

Additional Notes

There are a number of free Fortran tutorials available at, including tutorials for Fortran77, Fortran90, Fortran2003, High Performance Fortran (HPF) and parallel programming using Fortran. A list of compiler tricks is available at, providing some helpful comparison of flags between different flavours of compilers.

There is a set of extensions to Fortran 90 that provide access to High Performance architecture features called High Performance Fortran. It is first published by the High Performance Fortran Forum (HPFF) and the HPFF was convened and chaired by Ken Kennedy of Rice UniversityNetlib maintains a copy of the HPF standard.

Authors: Mohsin Ali