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

v filename with .c suffix (C source file)<br />

v filename with .i suffix (preprocessed C or C++ source file)<br />

v filename with .o suffix (object file for binder/IPA Link)<br />

v filename with .s suffix (assembler source file)<br />

v filename with .a suffix (archive library)<br />

v filename with .p suffix (prelinker output file for the binder/IPA Link)<br />

v filename with .I suffix (IPA Link output file for the binder)<br />

v filename with .x suffix (definition side-file or side deck)<br />

Host files:<br />

v filename with .CXX suffix (C++ source host file)<br />

v filename with .C suffix (C source host file)<br />

v filename with .CEX suffix (preprocessed C or C++ source host file)<br />

v filename with .OBJ suffix (object host file for the binder/IPA Link)<br />

v filename with .ASM suffix (assembler source host file)<br />

v filename with .LIB suffix (host archive library)<br />

v filename with .CPOBJ suffix (prelinker output host file for the binder/IPA Link)<br />

v filename with .IPA suffix (IPA Link output host file for the binder<br />

v filename with .EXP suffix (host definition side-file or side deck)<br />

Note: For host files, the host data set name must by preceded by a double slash<br />

(//). The last qualifier of the data set name is .C instead of a file name with a<br />

.C suffix.<br />

The xlc utility invokes the assembler, the z/<strong>OS</strong> XL C/C++ compiler, and the binder.<br />

Invocation of the compiler and the binder is described in “Invoking the compiler” on<br />

page 806 and “Invoking the binder” on page 807.<br />

Invocation commands<br />

The xlc utility provides two basic compiler invocation commands, xlc and xlC<br />

(xlc++), along with several other compiler invocation commands to support various<br />

C/C++ language levels and compilation environments. In most cases, you would<br />

use the xlc command to compile C source files and xlC (xlc++) command to<br />

compile C++ source files.<br />

You can however, use other forms of the command if your particular environment<br />

requires it. The various compiler invocation commands for C are:<br />

v xlc<br />

v cc<br />

v c89<br />

v c99<br />

v xlc_x<br />

v cc_x<br />

v c89_x<br />

v c99_x<br />

v xlc_64<br />

v cc_64<br />

v c89_64<br />

v c99_64<br />

xlc and xlC<br />

Chapter 2. Shell command descriptions 797

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

Saved successfully!

Ooh no, something went wrong!