Page tree

On this page

Overview

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

Usage

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:

$ module avail gcc

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

$ module load gcc/11.1.0

For more details on using modules see our modules help guide at https://opus.nci.org.au/display/Help/Environment+Modules.

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 http://gcc.gnu.org/onlinedocs/.

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

$ man gfortran

Additional Notes

There are a number of free Fortran tutorials available at https://fortran-lang.org/learn/, including tutorials for Fortran77, Fortran90, Fortran2003, High Performance Fortran (HPF) and parallel programming using Fortran. A list of compiler tricks is available at http://www.fortran-2000.com/ArnaudRecipes/CompilerTricks.html, 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.