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

Compiling and linking
Compiling with the f90 command
Chapter 2 25
Commonly-used options
Table 2-1 identifies commonly-used command-line options for when you want to change the compilers
default behavior. For a complete and full description of all HP Fortran command-line options, see “Option
descriptions” on page 27.
Table 2-1 Commonly-used options
Option Function
-c Compile without linking. Use this option to compile and link in
separate steps.
-g Prepare program for debugging. Use this option to prepare your
program for debugging.
-Ldirectory Specify where to look for libraries; applies only to succeeding
-l options. Be careful about using this option if the LPATH
environment variable is set.
-lx Specify a library. Use this option to link in library routines.
-O Optimize. Use this option to optimize your program at the
default level of optimization.
+save Give the SAVE attribute to local variables. Use this option
when porting older Fortran programs that may contain
uninitialized variables.
-o outfile Name the output file outfile. Use this option to name the
executable or object file.
+usage List all compile-line options currently supported by f90.
-v Enable verbose mode. Use this option to get a report on the
compilation process.
-Idirectory Set include file and module search path.
-Wl,arg Specify that thearg has to be passed by a linker option.