When you use the f90
command to compile a Fortran 90 program, the command invokes a number
of components—and not just the compiler—to create
the executable. By default, f90
invokes different components to parse the source files for syntax
errors, produce an intermediate code, optimize the intermediate
code, produce object code, search a set of library files for any
additional object code that may be required, and link all of the
object code into an executable file that you run without further
processing.
For example, consider a program that consists of three source
files: x.f90, y.f90,
and z.f90. The following command
line will process the source files and, if they are syntactically
correct, produce an executable file with the default name a.out:
After compilation is complete, you can execute the program
by invoking the name of the executable, as follows:
However, it is likely that you'll want to control
what components act on your program and what they do to it. For
example, you may want to give the executable a name other than a.out
or to link in other libraries than the default ones. The HP Fortran
90 compiler supports a variety of compile-line options that enable
you to control the compilation process. This chapter provides an
overview of the process and of the options that enable you to control
the different components invoked by the f90
command.