The order of compilation when the C preprocessor runs first
When a user chooses to run the C preprocessor on the source
file before the 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 preprocessor runs on the output of the C preprocessor, which no longer has any SQL keyword protection.
- The output of the preprocessor undergoes compilation and linking by the C compiler and linker to produce an executable file.