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

Using Fortran directives
Using HP Fortran directives
Chapter 9214
Description and restrictions
The $HP$ OPTIMIZE directive allows you to determine which areas of your program that the optimizer
will process. Specifying $HP$ OPTIMIZE OFF causes the following source lines not to be optimized.
$HP$ OPTIMIZE ON re-enables optimization for the following source lines.
This directive is effective only if you have used either the -On or +On option when you compiled the
program. If you have not specified either option, both $HP$ OPTIMIZE ON and $HP$ OPTIMIZE OFF
will give you level 0 optimization.
The following are supported:
!HP$ OPTIMIZE ON
!HP$ OPTIMIZE OFF
!HP$ OPTIMIZE level 1
!HP$ OPTIMIZE level 0
!HP$ OPTIMIZE level 2
!HP$ OPTIMIZE level 1 on
!HP$ OPTIMIZE level 0 on
!HP$ OPTIMIZE level 2 on
!HP$ OPTIMIZE level 1 off
!HP$ OPTIMIZE level 0 off
!HP$ OPTIMIZE level 2 off
!HP$ optimize assume_no_parameters_overlaps on
!HP$ optimize assume_no_parameters_overlaps off