MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The fifth phase of compiler is
A
Code generation
B
Code optimization
C
Error handling
D
Intermediate code generation
Explanation: 

Detailed explanation-1: -The fifth phase is the code optimization phase, which eliminates the irrelevant code lines and arranges the sequence of statements to speed up the program execution without resource (CPU, memory) wastage. The final phase is the code generation.

Detailed explanation-2: -Explore the Phases of Compiler Syntactic Analysis or Parsing. Semantic Analysis. Intermediate Code Generation. Code Optimization.

Detailed explanation-3: -Code Generation In the sixth and the final phase of the compiler, code generation receives as input the optimized intermediate code and translates the optimized intermediate code into the target machine language.

There is 1 question to complete.