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

5. -Bprefix and -tprograms options override the path names of<br />

the programs that are specified inside the configuration file<br />

indicated by the -Fconfig_file option.<br />

Example: To compile myprogram.c using a substitute compiler<br />

and binder from /lib/tmp/mine/, enter:<br />

xlc myprogram.c -B/lib/tmp/mine/<br />

Example: To compile myprogram.c using a substitute binder<br />

from /lib/tmp/mine/, enter:<br />

xlc myprogram.c -B/lib/tmp/mine/ -tl<br />

-F Names an alternative configuration file (.cfg) for the xlc utility.<br />

Suboptions are:<br />

v config_file (specifies the name of an xlc configuration file.)<br />

v stanza (specifies the name of the command used to invoke the<br />

compiler. This directs the compiler to use the entries under<br />

stanza in the config_file to set up the compiler environment.)<br />

►►<br />

-F<br />

Notes:<br />

config_file<br />

:<br />

stanza<br />

:<br />

stanza<br />

1. The default configuration file supplied at installation time is<br />

called /usr/lpp/cbclib/xlc/etc/xlc.cfg. Any file names or stanzas<br />

that you specify on the command line override the defaults<br />

specified in the /usr/lpp/cbclib/xlc/etc/xlc.cfg configuration file.<br />

2. The -B, -t, and -W options override entries in the configuration<br />

file indicated by the -F option.<br />

Example: To compile myprogram.c using a configuration file called<br />

/usr/tmp/mycbc.cfg, enter:<br />

xlc myprogram.c -F/usr/tmp/mycbc.cfg<br />

-O Optimizes generated code.<br />

►►<br />

-O<br />

-O2 Same as -O.<br />

►►<br />

-O2<br />

-O3 Performs some memory and compile time intensive optimizations in<br />

addition to those executed with -O2. The -O3 specific optimizations<br />

have the potential to alter the semantics of a user’s program. The<br />

compiler guards against these optimizations at -O2 and the option<br />

-qstrict is provided at -O3 to turn off these aggressive<br />

optimizations.<br />

►►<br />

-O3<br />

-O4 Equivalent to -O3 -qipa and -qhot.<br />

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

►◄<br />

►◄<br />

►◄<br />

►◄

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

Saved successfully!

Ooh no, something went wrong!