HP Fortran Programmer's Guide (September 2007)
An overview of HP Fortran
Back-end
Chapter 1 13
-g Generate debugging information needed by the debugger. This
option is compatible with optimization levels 0, 1, and 2. If you
compile and link separately and specify -g on the command line,
you must also specify it on the link line.
For information about using this option to prepare programs for the
debugger, see “Using the HP WDB debugger” on page 117.
+[no]gprof Prepare [do not prepare] object files for profiling with gprof; see
the
gprof
(1) man page. The default is +nogprof. If you compile
and link separately and specify +gprof on the command line, you
must also specify it on the link line.
For information about using this option to profile programs with
gprof, see “gprof” on page 142.
+k Generate code for programs that reference a very large number of
shared data items. The linker will issue a diagnostic message in
the rare cases when this option is needed.
+pic={short|long|n
o}
Generate Position Independent Code (PIC) with short
displacements (+pic=short) or long displacements (+pic=long) for
use in shared libraries. The default is +pic=no.
For information about using this option when creating shared
libraries, see “Compiling with +pic” on page 88.
+[no]prof Prepare [do not prepare] object files for profiling with prof; see the
prof
(1) man page. The default is +noprof. If you compile and link
separately and specify +prof on the command line, you must also
specify it on the link line.
For information about using this option to profile programs with
prof, see “gprof” on page 142.
+[no]save Save [do not save] all local variables in all subprograms.
For information about using this option when porting, see
“Uninitialized variables” on page 238.
Table 1-5 Options for controlling code generation (Continued)
Option Function