Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (c) c89(1)
The -E, -WH, and -WM flags override the -WP flag.
-Wpool_string_literals
Specifies that, within a compilation unit, multiple occurences of the same string literal
should occupy the same storage space. This flag applies to C++ compilations only; it
is ignored when C++ is not used.
The default assignment for multiple occurrences of a string literal gives them separate
storage space.
-Wprofdir=name
Specifies the location in which to create the dynamic information (DYN) file when the
-Wprofgen flag directs the compiler to generate instrumented code. If the application
is to run in the Guardian environment, name must be a string that specifies a valid
Guardian subvolume. Otherwise, name must be a string that specifies a valid OSS
directory. If an invalid name is specified, no profiling information will saved.
If this flag is not specified, the DYN file is created in the default Guardian subvolume
or the current OSS working directory for the process.
If object files that were compiled with different profdir locations are linked together,
when the application is run, the DYN file is created in the location specified by one of
profdir flags. However, it is not possible to predict which profdir location will be
used.
This flag is valid only for TNS/E-targeted compilations. For more information about
profile-guided optimization, see the Code Profiling Utilities Manual.
-Wprofgen
Directs the compiler to generate instrumented code, used for profile-guided optimiza-
tion. All or part of an application can be instrumented by turning this flag on or off for
individual compilations of object files. These object files can be linked into programs
or DLLs.
Instrumented code references symbols defined in the public DLL named zpgodll.
When you link any program or DLL that contains instrumented code, the zpgodll DLL
must be specified at link time. The zpgodll DLL is automatically linked when you
specify the -Wcodecov or -Wprofgen flags.
When you use the -Wprofgen ag and you use the compiler to automatically invoke
the eld linker to build a program or DLL, the compiler passes the -l pgo option to eld.
HP recommends that you do not combine code that has been compiled with the
-Wcodecov flag with code that has been compiled with the -Wprofgen ag in the same
application.
This flag is valid only for TNS/E-targeted compilations. For more information about
profile-guided optimization, see the Code Profiling Utilities Manual.
-Wprofuse[=filename]
Directs the compiler to generate optimized code based on information in a dynamic
profiling information (DPI) file. This flag cannot be specified with either the
-Wcodecov or the -Wprofgen flags.
The DPI file is always in the current Guardian subvolume or OSS directory. You can
specify the name of the DPI file using the filename variable. If you do not specify a
filename, the name of the DPI file defaults to:
pgopti.dpi if the compilation is done in an OSS directory that is not a Guardian
subvolume.
527188-021 Hewlett-Packard Company 217