Sun Studio 12: C User's Guide

B.2.61 -Wc,arg

Passes the argument arg to a specified component c. See Table 1–1 for a list of components.

Each argument must be separated from the preceding only by a comma. All -W arguments are passed after the regular command-line arguments. A comma can be part of an argument by using the escape character \ (backslash) immediately before the comma. All -W arguments are passed after the regular command-line arguments.

For example, -Wa,-o,objfile passes -o and objfile to the assembler, in that order. Also, -Wl,-I,name causes the linking phase to override the default name of the dynamic linker, /usr/lib/ld.so.1.

The order in which the argument(s) are passed to a tool with respect to the other specified command line options may change.

c can be one of the following:

Table B–10 The -W Flags

Flag  

Meaning  

a

Assembler: (fbe); (gas)

c

C code generator: (cg) (SPARC) ;

d

cc driver 

h

Intermediate code translator (ir2hf)(x86)

i

Interprocedural optimizer (ube_ipa)(x86)

l

Link editor (ld)

m

mcs 

O (Capital o)

Interprocedural optimizer 

o (Lowercase o) 

Postoptimizer 

p

Preprocessor (cpp)

u

C code generator (ube) (x86)

0 (Zero)

Compiler (acomp) (ssbd, SPARC)

2

Optimizer: (iropt)