For more information

For more information about the ONstatement 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.

 

 

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 33 Example

The $HP$ LISTdirective 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” (page 131)for information about the +listoption.

$HP$ OPTIMIZE

The $HP$ OPTIMIZEdirective 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.

 

 

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.

Using HP Fortran directives 127