Before you can run a program, you have to compile the source code.
By default, the Compiler compiles your program without any intervention. You can configure the project to be built in a specific way, such as specifying types of target files to build, the target platform and so on.
You can configure the compilation using the following techniques:
You use directives to control the way the Compiler behaves. Normally, you need only a few directives. Most of the time, you use the default values. Note that setting some directives affects the default setting of other directives. For example, setting one directive might automatically unset another directive, and some directive settings are mutually exclusive.
On multi-CPU machines, you can enable faster, parallel compilation of multiple projects or, for native COBOL, of multiple files in your project. See Tips on Building COBOL for more details.
The Compiler records errors with severity levels ranging from information messages to fatal errors which stop the Compiler working.
When you compile as native code, the Compiler can produce executable code directly or object code. Object code is not executable, and has to be linked to the run-time system to create an executable file. If your project is set to build to .int and .gnt, by default the Compiler produces .int code during its syntax checking phase, and then it can produce .gnt code during the generating phase. You can modify this behavior from the project or the file properties.