HP 3000 Manuals

Ch 7. Compiler Directives [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

Chapter 7  Compiler Directives 

Compiler directives are commands within the source program that indicate
to the compiler exactly how it (or a program it is compiling) is to
function.

A compiler directive must begin with a $ in column 1.  A compiler
directive can be continued by using a backslash (\) to terminate the line
you want to continue.  Each continuation line must begin with a $.  A
compiler directive cannot occur within a continued FORTRAN statement.
More than one directive can be placed on a line by separating the
directives with commas or semicolons, except when indicated.

Compiler options specified in the file take precedence over compiler
options specified on the command line.

In general, compiler directives specified in your program will affect all
files that are included (using the INCLUDE statement) in that file.
Compiler directives that appear before an executable statement have a
global effect on all routines within that file.

If ON or OFF is applicable but not specified, ON is assumed.  For
example, the LIST directive can be specified as any of the following,
with the first two equivalent:

     $LIST ON
     $LIST
     $LIST OFF

The keywords OPTION and CONTROL can be used, but are not necessary.

They are included for backward compatibility.  Thus, the following three
are equivalent to the preceding:

     $OPTION LIST ON
     $OPTION LIST
     $OPTION LIST OFF

as are these three:

     $CONTROL LIST ON
     $CONTROL LIST
     $CONTROL LIST OFF

In contrast to other statements, blanks are significant within compiler
directives.

The directive name or the words ON or OFF can be written in any
combination of uppercase and lowercase letters.

If any directive other than those listed in this manual is used, it
produces the warning message

     Warning:  Compiler option identifier expected (724)

In this manual, "program head" is any of the following statements:
PROGRAM, SUBROUTINE, FUNCTION, or BLOCK DATA.



MPE/iX 5.0 Documentation