Compiling and linking applications
By default, when you invoke the XL C/C++ compiler, all of the following phases of translation are performed:
- Preprocessing of program source
- Compiling and assembling into object files
- Linking into an executable
These different translation phases are actually performed by separate executables, which are referred to as compiler components. However, you can use compiler options to perform only certain phases, such as preprocessing, or assembling. You can then reinvoke the compiler to resume processing of the intermediate output to a final executable.
The following sections describe how to invoke the XL C/C++ compiler to preprocess, compile, and link source files and libraries: