Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (c) c99(1)
-Wcall_shared | -Wshared
Directs the compiler to create a specific type of object file:
-Wcall_shared Specifies that the object file should be a PIC file; the eld linker is
invoked. If the -c flag is also specified, the file is a linkfile. Otherwise,
the file is an executable object file (loadfile).
This is the default behavior.
-Wshared Specifies that the file should be a PIC DLL; the eld linker is invoked.
You cannot use this flag if you use the -c flag.
-Wcodecov
Directs the compiler to create an instrumented object file and to create or add to an
existing SPI file. This flag has an effect only if you also specify either the
-Wtarget=ipf flag or the -Wtarget=tns/e flag.
The first time the -Wcodecov flag is used to compile a program, the compiler creates a
Static Profiling Information (SPI) file. This file is one of the input files for the Code
Coverage tool. If the program is compiled in an OSS directory:
• The default name for the SPI file is pgopti.spi.
• If the default file is not write-accessible, the name of the SPI file created is
tpopti.spi.
• A lock file called pgopti.spl. When compilation is complete, the compiler
deletes this file.
If the program is compiled in a Guardian directory:
• The default name for the SPI file is pgospi.
• If the default file is not write-accessible, the name of the SPI file created is
tpgospi.
• A lock file called pgospl. When compilation is complete, the compiler deletes
this file.
If the SPI file already exists when the program is compiled with the -Wcodecov flag,
the compiler updates or adds information to the existing SPI file. If more than one SPI
file exists for the same program, you must concatenate the files manually before you
can use the resulting file as input to the Code Coverage Tool.
For more information about the Code Coverage Tool, see the Code Profiling Utilities
Manual.
-Wcolumns=c
Specifies the maximum number of columns in input source files to process. c is in the
range 20 through 32767. Text in columns beyond column c is ignored.
-Wcplusplus
Directs c99 to assume that files with a .c or .i suffix contain C++ source code, and
defines the feature-test macro __cplusplus. If linking occurs, this flag directs the
linker utility to search the C++ standard run-time library.
If this flag is omitted and none of the operand filenames end in .C, .cpp, .cc,or.cxx,
then source files are compiled as C files only and, if -c
is not specified, are only linked
with
the C standard library. See Standard Libraries for details.
527188-021 Hewlett-Packard Company 2−41