16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

xlc and xlC<br />

Note: When used in the configuration file, the -W option requires<br />

the escape sequence back slash comma (\,) to represent a<br />

comma in the parameter string.<br />

►►<br />

▼ -W<br />

a<br />

c<br />

I<br />

l<br />

▼ ,<br />

directory<br />

Example: To compile myprogram.s so that the option map is<br />

passed to the binder and the option list is passed to the<br />

assembler, enter:<br />

xlc myprogram.s -Wl,map -Wa,list<br />

Example: In a configuration file, use the \, sequence to<br />

represent the comma (,):<br />

-Wl\,map,-Wa\,list<br />

Specifying compiler options<br />

Compiler options perform a wide variety of functions, such as setting compiler<br />

characteristics, describing the object code and compiler output to be produced, and<br />

performing some preprocessor functions. You can specify compiler options in one or<br />

more of the following ways:<br />

v On the command line<br />

v In your source program<br />

v In a configuration file<br />

The compiler uses default settings for the compiler options not explicitly set by you<br />

in these listed ways. The defaults can be compiler defaults, installation defaults, or<br />

the defaults set by the c89 or the xlc utility. The compiler defaults are overridden by<br />

installation defaults, which are overridden by the defaults set by the c89 or the xlc<br />

utilities.<br />

When specifying compiler options, it is possible for option conflicts and<br />

incompatibilities to occur. z/<strong>OS</strong> XL C/C++ resolves most of these conflicts and<br />

incompatibilities in a consistent fashion, as follows:<br />

Source overrides <strong>Command</strong> overrides Configuration overrides Default<br />

file -----------> line ----------> file -----------> settings<br />

Options that do not follow this scheme are summarized in the following table:<br />

Table 35. Compiler option conflict resolution<br />

Option Conflicting Options Resolution<br />

-qxref -qxref=FULL -qxref=FULL<br />

-qattr -qattr=FULL -qattr=FULL<br />

-E -o -E<br />

-# -v -#<br />

-F -B | -t |-W | -qpath|<br />

configuration file settings<br />

812 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

-B| -t | -W |-qpath<br />

►◄

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!