This chapter describes how to use the Fortran compiler.
The principal use of any compiler is to transform a program written in a procedural language like Fortran into a data file that is executable by the target computer hardware. As part of its job, the compiler may also automatically invoke a system linker to generate the executable file.
The compiler can also be used to:
Generate a parallelized executable file for execution by multiple threads (-openmp).
Analyze program consistency across source files and subroutines and generate a report (-Xlist).
Transform source files into:
Relocatable binary (.o) files, to be linked later into an executable file or static library (.a) file.
A dynamic shared library (.so) file (-G).
Link files into an executable file.
Compile an executable file with runtime debugging enabled (-g).
Compile with runtime statement or procedure level profiling (-pg).
Check source code for ANSI standards conformance (-ansi).