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.

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

preprocessor. By default, all comments are removed by the preprocessor.<br />

This option is ignored except when used with the -E option.<br />

-c Specifies that only compilations and assemblies be done. Link-edit is not<br />

done.<br />

-D name[=value]<br />

Defines a C or C++ macro for use in compilation. If only name is provided,<br />

a value of 1 is used for the macro it specifies. For information about macros<br />

that c89/cc/c++ automatically define, see Usage Note 5 on page 98. Also<br />

see Usage Note 13 on page 100.<br />

Note: The xlc utility has slightly different semantics for processing -D<br />

options.<br />

-E Specifies that output of the compiler preprocessor phase be copied to<br />

stdout. Object files are not created, and no link-editing is performed.<br />

-e function<br />

Specifies the name of the function to be used as the entry point of the<br />

program. This can be useful when creating a fetchable program, or a non–C<br />

or non–C++ main, such as a COBOL program. Non–C++ linkage symbols<br />

of up to 1024 characters in length may be specified. You can specify an<br />

S-name by preceding the function name with double slash (//). (For more<br />

information about S-names, see Usage Note 23 on page 103.)<br />

Specify a null S-name (″-e //″) so that no function name is identified by<br />

c89/cc/c++ as the entry point of the program. In that case, the Program<br />

Management Binder (link editor) default rules will determine the entry point<br />

of the program. For more information about the Program Management<br />

Binder and the ENTRY control statement, see z/<strong>OS</strong> MVS Program<br />

Management: User’s Guide and Reference.<br />

The function //ceestart is the default. When the default function entry point<br />

is used, a binder ORDER control statement is generated by c89/cc/c++ to<br />

cause the CEESTART code topic to be ordered to the beginning of the<br />

program. Specify the name with a trailing blank to disable this behavior, as<br />

in "//ceestart ". For more information about the Program Management<br />

Binder and the ORDER control statement, see z/<strong>OS</strong> MVS Program<br />

Management: User’s Guide and Reference.<br />

This option may be required when building products which are intended to<br />

be installed using the IBM SMP/E product. When installing ++MOD<br />

elements with SMP/E, binder control statements should be provided in the<br />

JCLIN created to install the product instead of being embedded in the<br />

elements themselves.<br />

-F Ignored by cc. Provided for compatibility with historical implementations of<br />

cc. Flagged as an error by c89 and c++.<br />

-f Ignored by cc. Provided for compatibility with historical implementations of<br />

cc. Flagged as an error by c89 and c++.<br />

Historical implementations of C/C++ used this option to enable floating-point<br />

support. Floating-point is automatically included in z/<strong>OS</strong> XL C/C++.<br />

However, in z/<strong>OS</strong> XL C/C++, two types of floating-point support are<br />

available:<br />

HEXADECIMAL<br />

Base 16 IBM <strong>System</strong> z9 <br />

hexadecimal format. The IBM <strong>System</strong> z9<br />

Chapter 2. Shell command descriptions 71

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

Saved successfully!

Ooh no, something went wrong!