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

User Commands (c) c99(1)
-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.
For more information about profile-guided optimization, see the Code Profiling Utili-
ties 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.
pgodpi if the current OSS working directory is a Guardian subvolume.
For more information about profile-guided optimization, see the Code Profiling Utili-
ties Manual.
-Wr Passes the -r option to the linker, which directs the linker to create a linkable object file
instead of an executable object file (the default).
-W[no]reexport
Tells the linker whether to mark any library specified in a -l operand or -L flag after this
flag for reexport in its libList entry in the loadfile being created. Specifying
-Wnoreexport leaves the library unmarked; specifying -Wreexport marks the library.
Reexport is a run-time attribute that is used by the rld loader to decide what DLLs it
needs to load.
-Wnoreexport is the default action.
These flags can be specified as many times as needed in the command stream. Provid-
ing either flag overrides the current setting, so that the linker actions can be controlled
on a library-by-library basis.
-Wrefalign=ref
Specifies the global reference alignment for pointers. ref can be either 2 or 8
. The
default
value is 8.
527188-021 Hewlett-Packard Company 249