Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (c) c89(1)
-O Sets the compiler to optimization level 2. This flag is equivalent to a -Woptimize=2
flag.
-s Strips symbolic information not required for proper execution from object and execut-
able files. The resulting object file cannot be debugged using a symbolic debugger.
This flag is ignored if the -Wr flag is also specified.
-U name Removes any initial definition of the preprocessor symbol name. The -U flag has
higher precedence than the -D flag. If name is specified in both a -U and a -D flag,
name is undefined regardless of the order of the flags.
-Wallow_cplusplus_comments
Directs the compiler to allow comments that use the C++ comment style in C source
files.
-Wallow_extern_explicit_instantiation
Allows an extern storage attribute to be applied to an explicit template instantiation.
This flag suppresses the instantiation of the template. If this flag is omitted, the tem-
plate is instantiated.
-Wansistreams
Generates a Guardian program that opens text files as type 180 instead of type 101 if
-Wsystype=guardian is specified. (By default Guardian programs open text files as
type 101.) This flag is ignored when -Wsystype=oss is used. OSS programs can open
text files only as type 180.
-Wbasename
Directs the compiler to place only the last part of the source file name, known as the
basename, into the dynamic information (DYN) file when the instrumented process
runs.
If you use the -Wbasename option and the -Wprofgen option to compile a source file,
you also must use the -Wbasename option when you use the -Wprofuse option to
compile this source file. When you use the -Wbasename option, the source file is not
required to be in the same location as it was when you compiled the file using the
-Wprofgen option, but the basename must be the same.
If you did not use both the -Wbasename and the -Wprofgen options when you com-
piled this source file, do not specify the -Wbasename flag when you compile this
source file with the -Wprofuse flag. If you do not use the -Wbasename flag, when you
compile the source file and specify the -Wprofuse flag, the source file must be in the
same location as it was when you used the -Wprofgen flag to compile the file.
This flag is valid only for TNS/E-targeted compilations. For more information about
profile-guided optimization and the rules for using the -Wbasename flag, see the Code
Profiling Utilities Manual.
-WBdllsonly
Tells the ld or eld linker to limit searches to position-independent code (PIC) files that
are dynamic-link libraries (DLLs) when resolving the file names specified for the -l
operands and -L flags.
If a file name is qualified, the linker searches for a DLL with that name.
If a filename is unqualified, in each search path, the linker first searches for a DLL with
the file name as specified in the -l operand or -L
flag. If the linker cannot find a DLL,
the
file name is unqualified, and the search path is not in the Guardian file system (/G),
then the linker prefixes lib and suffixes .so to the file name and searches again. If the
linker still cannot find the DLL, it searches the path again with the same prefix but with
527188-021 Hewlett-Packard Company 2−5