FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-4
Using Compiler Directives
Using Compiler Directives
The general form for compiler directives is:
?
in the first column of a source line designates that it is a compiler directive line.
directive
is one of the compiler directives described in this section.
Considerations
FORTRAN ignores blanks in compiler directives, except within quoted strings.
You can specify more than one directive per line. Separate directives with commas.
You can continue directives that have a parameter list over multiple lines. The
break in the parameter list can occur between parameters anywhere after the
opening parenthesis. The continuation line must also begin with a question mark in
column one. For example:
?ERRORS 100, FMAP, SOURCE (file1, file2,
?file3)
You can use an equal sign (=) between any directive or option keyword and its
numeric value, but it is not required. For example, ?DATAPAGES = 64 and
?DATAPAGES 64 are equivalent.
You can use decimal or octal notation for all directives and options that require
numeric values.
Observe the following restrictions in the placement of compiler directives:
SUPPRESS Lists only error messages and compilation statistics; overrides LIST.
Default is NOSUPPRESS.
SYMBOLS Includes a symbol table in the object file for use by Inspect. Default
is NOSYMBOLS.
SYNTAX Searches source file for syntax errors; does not produce object file.
UNIT Causes a unit to exist; declares the properties of the file or files
connected to the unit.
WARN Lists warning messages regardless of the LIST setting. Default is
WARN.
? directive [, directive ]...
Table 10-1. Summary of Compiler Directives (page 4 of 4)
Directive Action