HP Fortran Programmer's Guide (B3908-90031; September 2011)

Using Fortran directives
Using HP Fortran directives
Chapter 9 213
Syntax
!$HP$ LIST [ON | OFF]
ON enables the inclusion of source lines in the listing file.
OFF disables the inclusion of source lines in the listing file.
Description and restrictions
The $HP$ LIST directive controls which source lines are output to the listing file. This directive is
effective only when the source files are compiled with the +list option. It may appear anywhere in the
source file.
If the $HP$ LIST OFF directive occurs in a file that is compiled with the +list option, the listing will
contain everything in the source file up through the directive. The $HP$ LIST OFF directive applies to the
rest of the file, or until a $HP$ LIST ON directive is encountered.
Example
The $HP$ LIST directive is especially useful for disabling the listing of include files, as in the following
example:
!$HP$ LIST OFF
INCLUDE ”/my_stuff/some_generic_declarations.h”
!$HP$ LIST ON
For more information
See “Incompatibilities with HP FORTRAN 77” on page 220 for information about the +list option.
$HP$ OPTIMIZE
The $HP$ OPTIMIZE directive enables or disables the level of optimization that was specified on the
command line.
Syntax
!$HP$ OPTIMIZE [ON | OFF]
ON enables the level of optimization specified on the command line.
OFF disables the level of optimization specified on the command line.
This directive is effective for all program units that follow it in your program. It should therefore be placed
outside and before the program units it is to affect. If you insert this directive inside a program unit, it will
have no effect on that program unit, only on those that follow.