-W

Description

Passes the listed option to a designated compiler component.

Syntax

Read syntax diagramSkip visual syntax diagram               .-----------.
               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

Notes

When used in the configuration file, the -W option accepts the escape sequence backslash comma (\,) to represent a comma in the parameter string.

Examples

  1. To compile myprogram.c so that the option -pg is passed to the linkage editor (l) and the assembler (a), enter:
    xlc myprogram.c -Wl,-pg -Wa,-pg
  2. In a configuration file, use the \, sequence to represent the comma (,).
    -Wl\,-pg,-Wa\,-pg

Related information