1.1 About GNU Fortran
The GNU Fortran compiler supports the Fortran 77, 90 and 95 standards
completely, parts of the Fortran 2003 and Fortran 2008 standards, and
several vendor extensions. The development goal is to provide the
The GNU Fortran compiler consists of several components:
- A version of the gcc command
(which also might be installed as the system's cc command)
that also understands and accepts Fortran source code.
The gcc command is the driver program for
all the languages in the GNU Compiler Collection (GCC);
you can compile the source code of any language for
which a front end is available in GCC.
- The gfortran command itself,
which also might be installed as the
system's LF command.
gfortran is just another driver program,
but specifically for the Fortran compiler only.
The difference with gcc is that gfortran
will automatically link the correct libraries to your program.
- A collection of run-time libraries.
These libraries contain the machine code needed to support
capabilities of the Fortran language that are not directly
provided by the machine code generated by the
gfortran compilation phase,
such as intrinsic functions and subroutines,
and routines for interaction with files and the operating system.
- The Fortran compiler itself, (f951).
This is the GNU Fortran parser and code generator,
linked to and interfaced with the GCC backend library.
f951 “translates” the source code to
assembler code. You would typically not use this
instead, the gcc or gfortran driver
programs will call it for you.