Technical data
Compiling and Linking
3
Figure 1-1 Compilation Process
Note the following:
• The source file ends with the required suffixes .f or .F.
• The source file is passed through the C preprocessor, cpp, by default. cpp
does not accept C-style comments in Hollerith strings. The –nocpp
option skips the pass through cpp and therefore, allows C-style
comments in Hollerith strings. (See the –nocpp option in “Driver
Options” on page 8 for details.) In the example
% f77 myprog.f –nocpp
the file myprog.f will not be preprocessed by cpp.
• The driver produces a linkable object file when you specify the –c
driver option. This file has the same name as the source file, except with
the suffix .o. For example, the command line
% f77 more.f -c
produces the more.o file in the above example.
Fortran Front End
Optimizer
Code Generator
Assembler
Link Editor
(optional)
more.f
more.o
a.out










