HP Fortran Programmer Guide (766160-001, March 2014)

Table 1 Options for controlling the f90 driver (continued)
FunctionOption
If you compile and link separately and specify +tl on the
compile line, you must also specify it on the link line.
List and briefly describe all f90 options.+usage
Print verbose information to standard output as program
is compiled.
-v
Write compiler version information to standard output,
without compiling.
+version
Pass arg1 through argN to a subprocess of the
compilation, identified by x. The values for x are:
-Wx,name]
a Assembler
c Compiler
l Linker
p C preprocessor
If you compile and link separately and specify +Wl on the
compile line, you must also specify it on the link line.
C preprocessor
HP Fortran source files can include directives that the C preprocessor (cpp) reads and expands
before the program is passed to the compiler. Among other things, cpp directives enable you to
code parts of your program for conditional compilation. By default, the f90 command passes
source files ending in the .F extension to the C preprocessor.
Table 2 (page 10) lists and briefly describes the options for controlling the preprocessor, including
the +cpp option, which overrides the default behavior and passes all source files on the command
line to the preprocessor. For additional information, see and the cpp(1) manpage.
Table 2 Options for controlling the C preprocessor
FunctionOption
Invoke the C preprocessor. +cpp=yes passes all source
files to the preprocessor. +cpp=default passes only files
+cpp={yes|no|default}
ending in the .F extension. +cpp=no suppresses passing
any files. The default is +cpp=default.
Retain [discard] output from the C preprocessor. If the
source filename is file.f or file.F, output is stored in
+[no]cpp_keep
file.i; if the source filename is file.f90, the output
filename is file.i90. The default, +nocpp_keep, is to
discard the output.
Define the symbol name to the preprocessor. If def is
specified, name is defined to that value.
-Dname[=def]
Add directory to the list of directories searched for files
specified in include directives. The command line can have
-Idirectory
multiple occurrences of this option, each specifying a
different directory.
Generate the make rule corresponding to the compilation,
the output is redirected to the stdout or user specified
-M
file. The rule describes the dependencies of the source file,
containing the object file name for that source file, a colon,
and the names of all the included files.
Remove any initial definition of name, a reserved symbol
that is predefined by the preprocessor.
-Uname
10 An overview of HP Fortran