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.

|<br />

|<br />

|<br />

|<br />

xlc and xlC<br />

1. search places defined in the customizable defaults module<br />

(CCNEDFLT)<br />

2. followed by those specified on the command line using the -I flag<br />

option<br />

3. followed by those specified in the configuration file<br />

v If the -qnosearch is specified only in the configuration file:<br />

1. search places specified on the command line using the -I flag option<br />

2. followed by those specified in the configuration file<br />

v If the -qnosearch option is specified on the command line:<br />

1. search places specified on the command line following the last<br />

specified -qnosearch option<br />

2. followed by those specified in the configuration file<br />

Tailoring a configuration file<br />

The default configuration file is installed in /usr/lpp/cbclib/xlc/etc/xlc.cfg.<br />

You can copy this file and make changes to the copy to support specific compilation<br />

requirements or to support other C or C++ compilation environments. The -F option<br />

is used to specify a configuration file other than the default. For example, to make<br />

-qnoro the default for the xlC compiler invocation command, add -qnoro to the xlC<br />

stanza in your copied version of the configuration file.<br />

You can link the compiler invocation command to several different names. The<br />

name you specify when you invoke the compiler determines which stanza of the<br />

configuration file the compiler uses. You can add other stanzas to your copy of the<br />

configuration file to customize your own compilation environment.<br />

Only one stanza, in addition to the one referenced by the ″use″ attribute, is<br />

processed for any one invocation of the xlc utility. By default, the stanza that<br />

matches the command name used to invoke the xlc utility is used, but it can be<br />

overridden using the -F flag option as described in the example below.<br />

Example: You can use the -F option with the compiler invocation command to<br />

make links to select additional stanzas or to specify a stanza or another<br />

configuration file:<br />

xlC myfile.C -Fmyconfig:SPECIAL<br />

would compile myfile.C using the SPECIAL stanza in a myconfig configuration file<br />

that you had created.<br />

Default configuration file<br />

The default configuration file, (/usr/lpp/cbclib/xlc/etc/xlc.cfg.), specifies information<br />

that the compiler uses when you invoke it. This file defines values used by the<br />

compiler to compile C or C++ programs. You can make entries to this file to support<br />

specific compilation requirements or to support other C or C++ compilation<br />

environments. Options specified in the configuration file override the default settings<br />

of the option. Similarly, options specified in the configuration file are in turn<br />

overridden by options set in the source file and on the command line. Options that<br />

do not follow this scheme are listed in “Specifying compiler options” on page 812.<br />

Example: The following example shows a default configuration file:<br />

*<br />

* FUNCTION: z/<strong>OS</strong> 1.9 XL C/C++ Compiler Configuration file<br />

*<br />

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

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

Saved successfully!

Ooh no, something went wrong!