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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

It provides information about exactly which compiler, prelinker, and link<br />

editor options are being passed, and also which data sets are being used. If<br />

you want to obtain this information without actually invoking the underlying<br />

programs, specify the -v option more than once on the c89/cc/c++<br />

command string. For more information about the programs which are<br />

executed, see Usage Note 14 on page 101.<br />

-W phase, option[,option]...<br />

Specifies options to be passed to the steps associated with the compile,<br />

assemble, or link-editing phases of c89/cc/c++. The valid phase codes are:<br />

0 Specifies the compile phase (used for both non-IPA and IPA<br />

compilation).<br />

a Specifies the assemble phase.<br />

c Same as phase code 0.<br />

I Enables IPA (Interprocedural Analysis) optimization.<br />

Unlike other phase codes, the IPA phase code I does not require<br />

that any additional options be specified, but it does allow them. In<br />

order to pass IPA suboptions, specify those suboptions using the<br />

IPA phase code.<br />

Example: To specify that an IPA Compile should save source line<br />

number information, without writing a listing file, specify:<br />

c89 -c -W I,list file.c<br />

Example: To specify that an IPA Link-edit should write the map file<br />

to stdout, specify:<br />

c89 -W I,map file.o<br />

l Specifies the link-editing phase.<br />

v To pass options to the prelinker, the first link-editing phase option<br />

must be p or P. All the following options are then prelink options.<br />

Example: To write the prelink map to stdout, specify:<br />

c89 –W l,p,map file.c<br />

Note: The prelinker is no longer used in the link-editing phase in<br />

most circumstances. If it is not used, any options passed<br />

are accepted but ignored. See the environment variable<br />

prefix_STEPS under “Environment variables” on page 84<br />

for more information about the link-editing phase prelink<br />

step.<br />

v To pass options to the IPA linker, the first link-editing phase<br />

option must be i or I. All the following options are then IPA Link<br />

options.<br />

Example: To specify the size of the SPILL area to be used<br />

during an IPA Link-edit, you could specify:<br />

c89 –W l,I,"spill(256)" file.o<br />

v To link-edit a DLL (Dynamic Link Library) and produce a side<br />

deck, the link-editing phase option DLL must be specified.<br />

Example: To accomplish this task, you could specify:<br />

c89 –o outdll –W l,dll file.o<br />

c89, cc, and c++<br />

Most z/<strong>OS</strong> XL C/C++ extensions can be enabled by using this option.<br />

Those which do not directly pass options through to the underlying steps, or<br />

involve files which are extensions to the compile and link-edit model, are<br />

described here:<br />

Chapter 2. Shell command descriptions 77

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

Saved successfully!

Ooh no, something went wrong!