The order of compilation when the C preprocessor runs first
When a user chooses to run the C preprocessor on the IBM®
Informix® ESQL/C source
file before the Informix
ESQL/C preprocessor,
the file undergoes the following order of compilation.
- The eprotect utility runs on the source file to protect all SQL keywords against interpretation by the C preprocessor.
- The C preprocessor runs on the source file.
- The eprotect utility runs on the output of the C preprocessor with the -u mode to remove SQL keyword protection.
- The Informix ESQL/C preprocessor runs on the output of the C preprocessor, which no longer has any SQL keyword protection.
- The output of the Informix ESQL/C preprocessor undergoes compilation and linking by the C compiler and linker to produce an executable file.