HP Fortran Programmer's Guide (March 2010)

Using Fortran directives
Using HP Fortran directives
Chapter 9 221
Description and restrictions
If you use $HP$ CHECK_OVERFLOW with the ON statement, you can cause your program to
ignore the overflow, abort on the overflow, or branch to a trap subroutine. If this directive is
not used, the ON statement has no effect on integer overflow errors.
This directive can appear anywhere in your program. It stays in effect until a subsequent
$HP$ CHECK_OVERFLOW directive changes the status.
For more information
For more information about the ON statement see the HP Fortran Programmer’s Reference.
$HP$ LIST
The $HP$ LIST directive turns on or off the inclusion of subsequent source lines in the listing
output.
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