None.
Passes the listed options to a component that is executed during compilation.
.-----------. V | >>- -W--+-a-+----,--option-+----------------------------------->< +-b-+ +-c-+ +-C-+ +-d-+ +-I-+ +-L-+ '-l-'
The following table shows the correspondence between -W parameters and the component executable names:
| Parameter | Description | Executable name |
|---|---|---|
| a | Assembler | as |
| b | Low-level optimizer | xlCcode |
| c | Compiler front end | xlcentry, xlCentry |
C |
C++ compiler front end | xlCentry |
| d | Disassembler | dis |
| I | High-level optimizer, compile step | ipa |
| L | High-level optimizer, link step | ipa |
| l | Linker | ld |
In the string following the -W option, use a comma as the separator for each option, and do not include any spaces. If you need to include a character that is special to the shell in the option string, precede the character with a backslash. For example, if you use the -W option in the configuration file, you can use the escape sequence backslash comma (\,) to represent a comma in the parameter string.
You do not need the -W option to pass most options to the linker ld; unrecognized command-line options, except -q options, are passed to it automatically. Only linker options with the same letters as compiler options, such as -v or -S, strictly require -W.
None.
xlc -Wl,-berok file.c
xlc -Wa,-x -Wl,-s produces_warnings.s uses_many_symbols.c