COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Number of phases in an interpreter are
|
2
|
|
4
|
|
6
|
|
8
|
Explanation:
Detailed explanation-1: -Interpretation Phases. That is, an interpreter does lexing, parsing, and semantic analysis.
Detailed explanation-2: -Explore the Phases of Compiler Syntactic Analysis or Parsing. Semantic Analysis. Intermediate Code Generation. Code Optimization.
Detailed explanation-3: -Phase 4: Intermediate Code Generation Once the semantic analysis phase is over the compiler, generates intermediate code for the target machine. It represents a program for some abstract machine. Intermediate code is between the high-level and machine level language.
There is 1 question to complete.