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.

The following are extensions to the P<strong>OS</strong>IX standard:<br />

v The -v, -V, -0, -1, -2 and -3 options<br />

v DLL support<br />

v IPA optimization support<br />

v The behavior of the -o option in combination with the -c option and a single<br />

source file.<br />

Note: -Ox (where x is 0, 1, 2, or 3) is equivalent to -x because -x overrides -O.<br />

This happens to match the standard compliant syntax of optimization level x<br />

(-Ox), but Ox is not treated as a single entity. It may appear redundant to<br />

use -Ox but it is recommended because it improves portability. In order to<br />

avoid creating non-portable legacy, the xlc utility does not support -x<br />

extension syntax. For example, the following are equivalent but the first<br />

syntax is recommended:<br />

c89 -O2 hello.c<br />

c89 -2 hello.c<br />

Features have been added to z/<strong>OS</strong> releases, which have made it easier to port<br />

applications from other platforms to z/<strong>OS</strong> and improve performance. For<br />

compatibility reasons, these portability and performance enhancements could not be<br />

made the default. If you are porting an application from another platform to z/<strong>OS</strong>,<br />

you may want to start by specifying the following options:<br />

c89 -o HelloWorld -2 -Wc,NOANSIALIAS -Wc,XPLINK\<br />

-Wl,XPLINK -Wc,’FLOAT(IEEE)’ -Wc,’GONUM’ HelloWorld.c<br />

Note: The example string is one line (had to be splite). A space exists between<br />

-Wc,XPLINK and -Wl,XPLINK.<br />

Related information<br />

ar, dbx, file, lex, makedepend, nm, strings, strip, yacc<br />

c99 — Compile, link-edit and assemble C source code and create an<br />

executable file on z/<strong>OS</strong><br />

See xlc.<br />

Note: When working in the shell, to view man page information about c99, type:<br />

man xlc.<br />

cal — Display a calendar for a month or year<br />

Format<br />

Description<br />

cal [month ] [year]<br />

cal displays a calendar on standard output (stdout).<br />

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

v With no arguments, cal displays a calendar for the current month of the current<br />

year.<br />

v If one argument is given and it is numeric, cal interprets it as a year (for<br />

example, 1991); if a single argument is not numeric, cal interprets it as the name<br />

of a month, possibly abbreviated (for example, apr).<br />

Chapter 2. Shell command descriptions 105

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

Saved successfully!

Ooh no, something went wrong!