Passes the listed option to a designated compiler component.
.-----------. V | >>- -W--+-a-+----,--option-+----------------------------------->< +-b-+ +-c-+ +-I-+ +-L-+ +-l-+ +-m-+ '-p-'
where programs are:
Program | Description |
---|---|
a | Assembler |
b | Compiler back end |
c | Compiler front end |
I | Interprocedural analysis - compile phase |
L | Interprocedural analysis - link phase |
l | linkage editor |
p | compiler preprocessor |
When used in the configuration file, the -W option accepts the escape sequence backslash comma (\,) to represent a comma in the parameter string.
xlc myprogram.c -Wl,-pg -Wa,-pg
-Wl\,-pg,-Wa\,-pg
Related information