Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

The cc, c11, c89 and CC commands

&pagelevel(2)&pagelevel

The C/C++ compiler can be called and supplied with options from the POSIX shell. The options cover most of the services and functions available for controlling the compiler via the SDF interface.
The syntax of the options, names of the processed or created objects and other conventions are based on the definition in the XPG4 Standard. POSIX shell interface extensions not covered by the XPG4 standard are based on the normal compiler or utility interface in UNIX systems.

The compiler includes an integrated link phase which converts the normal shell link options into corresponding link editor directives. A “standalone” link editor which is independent of the calling command is not available in the POSIX shell.

Only POSIX files can be read and written when compiling with the C/C++ compiler in the POSIX shell. BS 2000 files are not supported.
The source and header files may exist in either EBCDIC or ASCII code. It is assumed that all files (from a remote, merged in or a POSIX file system) are in the same codeset.