HP C A.06.05 Reference Manual

Compiling and Running HP C Programs
Compiling HP C Programs
Chapter 9212
-[no]fpwidetypes Enables [disables] extended and quad floating point
data types.
-g Inserts information for the symbolic debugger in the
object file.
-g0 Causes the compiler to generate complete debug
information for the debugger.
-g1 Causes the debugger to generate minimal
information for the debugger.
-G Inserts information required by the gprof profiler
in the object file.
-ipo Enables interprocedural optimizations across files.
-I
dir
Inserts
dir
in the include file search path.
-lname Causes the linker to search one of the default
libraries to resolve unresolved external references.
-l
x
Links with the /lib/lib
x
.a and /usr/lib/lib
x
.a
libraries.
-L
dir
Links the libraries in
dir
before the libraries in the
default search path.
-minshared Indicates that the result of the current compilation
is going into an executable file that will make
minimal use of shared libraries. This option is
equivalent to -exec -Bprotected.
-mt Enables multi-threading capability with the need to
set flags.
-n Generates shareable code.
-N Generates unshareable code.
-o
outfile
Places object modules in
outfile
file.
-O Optimizes at level 2.
Table 9-1 HP C Compiler Options at a Glance (Continued)
Option Description