HP aC++/HP C A.06.20 Programmer's Guide
The -Wx,args option passes the arguments arg1 through argn to the subprocess x
of the compilation.
Each argument, arg1, arg2, through argn takes the form:
-argoption[,argvalue]
where:
• argoption is the name of an option recognized by the subprocess.
• argvalue is a separate argument to argoption, where necessary.
The parameter, x, is one or more identifiers indicating a subprocess or subprocesses.
The value of x can be one or more of the following:
Table 2-8 Identifiers
Descriptionx
Assembler (standard suffix is as)a
Compiler (standard suffix is ecom)c
Same as cC
Filter tool (standard suffix is c++filt)f
Linker (standard suffix is ld)l
Preprocessor (standard suffix is cpp.ansi).
-tp must be used before any -Wp options can be passed to cpp.ansi. To enable the
external preprocessor, use:
-tp,/opt/langtools/lbin/cpp.ansi.
p
Stand-alone code generator (standard suffix is u2comp)u
All subprocesses
x
Example:
The following example compiles file.C and passes the option -v to the linker.
aCC -Wl,-v file.C
Passing Options to the Linker with -W
The following example links file.o and passes the option -a archive to the linker,
indicating that the archive version of the math library (indicated by -lm) and all other
driver-supplied libraries should be used rather than the default shared library:
aCC file.o -Wl,-a,archive -lm
Passing Multiple Options to the Linker with -W
The following example links file.o and passes the options -a , archive, -m, and
-v to the linker:
Subprocesses of the Compiler 115