Which of the following is a phase of a compilation process

A Lexical analysis
B Code generation
C Both of the above
D Static analysis
E None of the above

Correct Answer: Both of the above

Compiler operates in various phases each phase transforms the source program from one representation to another. Every phase takes inputs from its previous stage and feeds its output to the next phase of the compiler.
There are 6 phases in a compiler. Each of this phase help in converting the high-level langue the machine code. The phases of a compiler are:
I. Lexical analysis
II. Syntax analysis
III. Semantic analysis
IV. Intermediate code generator
V. Code optimizer
VI. Code generator

Related Questions

In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with
In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with
In analyzing the compilation of PL/I program, the term "Machine independent optimization" is associated with
The later Vedic Age means the age of the compilation of
During which phase or phase of cell division, the morphology of the chromosomes is best studied?

Next steps