Technical data

2
Chapter 1: Compiling, Linking, and Running Programs
Compiling and Linking
Drivers
Programs called drivers invoke the major components of the compiler
system: the Fortran compiler, the intermediate code optimizer, the code
generator, the assembler, and the link editor. The f77 command runs the
driver that causes your programs to be compiled, optimized, assembled, and
link edited.
The format of the f77 driver command is as follows:
f77 [option] filename.f [option]
where
f77 invokes the various processing phases that compile,
optimize, assemble, and link edit the program.
option represents the driver options through which you provide
instructions to the processing phases. They can be
anywhere in the command line. These options are discussed
later in this chapter.
filename.f is the name of the le that contains the Fortran source
statements. The lename must always have the sufx .f, for
example, myprog.f.
Compilation
The driver command f77 can both compile and link edit a source module.
Figure 1-1 shows the primary drivers phases. It also shows their principal
inputs and outputs for the source modules more.f.