Control Language Commands

Read this section for an overview of the Control Language (CL) commands that are used with the ILE C/C++ compiler. Syntax diagrams and parameter description tables are provided.

This table describes the CL commands that are used with the IBM® i compiler.
Table 1. Control Language Commands
Action Command Description
Create C Module CRTCMOD Creates a module object (*MODULE) based on the source you provide.
Create C++ Module CRTCPPMOD
Create Bound C Program CRTBNDC Creates a program object (*PGM) based on the source you provide.
Create Bound C++ Program CRTBNDCPP
CL commands and their parameters can be entered in either uppercase or lowercase. In this reference, they are always shown in uppercase. For example:
CRTCPPMOD MODULE(ABC/HELLO) SRCSTMF('/home/usr/hello.C') OPTIMIZE(40)

ILE C/C++ language statements must be entered exactly as shown. For example, fopen, _Ropen, because the ILE C/C++ compiler is case sensitive.

Variables appear in lowercase italic letters, for example, file-name, characters, and string. They represent user-supplied names or values.

Language statements may contain punctuation marks, parentheses, arithmetic operators, or other such symbols. You must enter them exactly as shown in the syntax diagram.

You can also invoke the compiler and its options through the Qshell command line environment. For more information about Qshell command and option formats, see Using the ixlc Command to Invoke the C/C++ Compiler.