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 />

Setting up a configuration file<br />

The configuration file specifies information that the compiler uses when you invoke<br />

it. This file defines values used by the compiler to compile C or C++ programs. You<br />

can make entries to this file to support specific compilation requirements or to<br />

support other C or C++ compilation environments.<br />

A configuration file is a <strong>UNIX</strong> file consisting of named topics called stanzas. Each<br />

stanza contains keywords called configuration file attributes, which are assigned<br />

values. The attributes are separated from their assigned value by an equal sign. A<br />

stanza can point to a default stanza by specifying the ″use″ keyword. This allows<br />

specifying common attributes in a default stanza and only the deltas in a specific<br />

stanza, referred to as the local stanza.<br />

For any of the supported attributes not found in the configuration file, the xlc utility<br />

uses the built-in defaults. It uses the first occurrence in the configuration file of a<br />

stanza or attribute it is looking for. Unsupported attributes, and duplicate stanzas<br />

and attributes are not diagnosed.<br />

Note: The difference between specifying values in the stanza and relying on the<br />

defaults provided by the xlc utility is that the defaults provided by the xlc<br />

utility will not override pragmas.<br />

Configuration file attributes<br />

A stanza in the configuration file can contain the following attributes:<br />

as Path name to be used for the assembler. The default is /bin/c89.<br />

asopt The list of options for the assembler and not for the compiler. These<br />

override all normal processing by the compiler and are directed to<br />

the assembler specified in the as attribute. Options are specified<br />

following the c89 utility syntax.<br />

asuffix The suffix for archive files. The default is a.<br />

asuffix_host The suffix for archive data sets. The default is LIB.<br />

ccomp The C compiler. The default is usr/lpp/cbclib/xlc/exe/ccndrvr.<br />

cinc A comma separated list of directories or data set wild cards used to<br />

search for C header files. The default for this attribute is:<br />

-I//’CEE.SCEEH.+’. For further information on the list of search<br />

places used by the compiler to search for system header files, see<br />

the note at the end of this list of configuration file attributes.<br />

classversion The USL class library version. The default matches the current<br />

release, as described in the TARGET compiler option description in<br />

z/<strong>OS</strong> XL C/C++ User’s Guide.<br />

cppcomp The C++ compiler. The default is /usr/lpp/cbclib/xlc/exe/ccndrvr.<br />

cppinc A comma separated list of directories or data set wild cards used to<br />

search for C++ header files. The default for this attribute is:<br />

-I//’CEE.SCEEH.+’,-I//’CBC.SCLBH.+’.For further information on the<br />

list of search places used by the compiler to search for system<br />

header files, see the note at the end of this list of configuration file<br />

attributes.<br />

csuffix The suffix for source programs. The default is c (lowercase c).<br />

csuffix_host The suffix for C source data sets. The default is C (uppercase C).<br />

cversion The compiler version. The default matches the current release, as<br />

800 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!