HP Fortran Programmer's Guide (March 2010)
Using Fortran directives
Directive syntax
Chapter 9 215
Directive syntax
The syntax for specifying directives in HP Fortran source files varies according to the type of
directive:
C preprocessor directives take the form:
#[line]cpp-directive
where cpp-directive is ANSI C-conforming except that the line keyword
is optional, making it compatible with the HP C compiler.
HP Fortran compiler directives take the form:
comment-character $HP$ directive-name
where comment-character is ! in free-source format or C, !, or * in
fixed-source format; and directive-name is one of the directives described
in this chapter.
There must be no space between comment-character and $HP$. In
fixed-source format, comment-character must be in column 1.