COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The following are the steps in compiling a program:i) code generationii) syntax analysisiii) optimizationiv) semantic analysisv) lexical analysis
A
i, ii, iv, iii, v
B
ii, iii, iv, i, v
C
iv, ii, v, iii, i
D
v, ii, iv, iii, i
Explanation: 

Detailed explanation-1: -Compilation process in C involves four steps: pre-processing, compiling, assembling, and linking. The preprocessor tool helps in comments removal, macros expansion, file inclusion, and conditional compilation.

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

Detailed explanation-3: -There are 6 phases in the compiler, namely, lexical analysis, syntax analysis, semantics analysis, intermediate code generation, code optimization, and code generation.

There is 1 question to complete.