ILE C/C++ Programmer's Guide


Creating a Program in Two Steps

To take advantage of the flexibility that ILE C/C++ offers, you can compile and bind source code into an ILE C/C++ program in two steps:

  1. In the first step, you create one or more ILE C/C++ module objects (*MODULE) from their respective source members using the Create Module command.
  2. In the second step, you use the Create Program (CRTPGM) command to bind one or more of these module objects into an executable ILE program object (*PGM). Binding is the process of combining one or multiple modules and optional service programs, and resolving external symbols between them. The system code that combines modules and resolves symbols is called the binder.

For example,

    CRTCMOD HELLO 
    CRTPGM HELLO
    CALL HELLO 

Using modules has these advantages:


[ Top of Page | Previous Page | Next Page | Table of Contents ]