HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
-Uname
-Uname
name is the symbol name whose definition is removed from the preprocessor.
This option undefines any name that has initially been defined by the preprocessing
stage of compilation.
A name can be a definition set by the compiler. This is displayed when you specify the
-v option. A name can also be a definition that you have specified with the -D option
on the command line.
The -D option has lower precedence than the -U option. If the same name is used in
both, the -U option and the -D option, the name is undefined regardless of the order of
the options on the command line.
Profiling Code Options
HP compilers provides the following options for profiling your code.
-G
-G
At compile time, the -G option produces code that counts the number of times each arc
in the call graph is traversed. At link-time, when you are building an executable (but not
a shared library) -G picks up profiled versions of certain system libraries and picks up
the gprof support library.
Example:
aCC -G file.C
The above example compiles file.C and creates the executable file a.out instrumented
for use with gprof.
See gprof(1) manpage for more information.
-p
-p
At compile time, the -p option produces code that counts the number of times each
routine is called. At link-time, when you are building an executable (but not a shared
library) -p picks up profiled versions of certain system libraries and picks up the prof
support library.
Example:
The following example compiles file.C and creates the executable file a.out
instrumented for use with prof.
aCC -p file.C
See the prof(1) manpage for more information.
90 Command-Line Options