Which of the following is NOT a phase of a compiler?
Answer: A
Correct answer: linking of object modules
Linking happens after compilation, combining separately compiled object files and libraries into an executable. It is a distinct tool with its own input and output, not a phase within the compiler.
The other three are all compiler phases: semantic analysis in the front end, and code optimisation and intermediate code generation between the front and back ends. The confusion arises because all four appear in a language processing system; only three are inside the compiler.
Please log in or register to report this question.