Creating Generated Code Files

Generated files are portable to the same chip-set, but are operating system dependent. Generated code files cannot be shared between processes; if two different programs call, at the same time, a subprogram compiled to generated code, a separate copy of that subprogram is loaded into each process's virtual memory space, and run.

You create a generated code file using the Compiler. There is no need to link the program. However, to run the program you need to do one of the following:

You can compile the source code file myprog.cbl to generated code as follows:

cob -ug myprog.cbl

This creates a generated code file called myprog.gnt, and Animator information files.

You can also create a .gnt file from an .int file using:

cob -ug myprog.int

The -g option produces files for use by Animator.