Match the compiler phase with the output it produces. A. Lexical
|
Match the compiler phase with the output it produces.
A. Lexical Analysis |
1. Machine code |
B. Syntax Analysis |
2. Token stream |
C. Intermediate Code Generation |
3. Parse Tree |
D. Code Generator |
4. Three address code |
A. A-1, B-2, C-4, D-1
B. A-2, B-3, C-4, D-1
C. A-2, B-3, C-1, D-4
D. A-1, B-3, C-4, D-2
Please scroll down to see the correct answer and solution guide.
Right Answer is: B
SOLUTION
Phases in a compiler:
The correct answer: A → 2, B → 3, C → 4, D → 1.
Important Point:
A parse tree is also called syntax tree
Three address code is one of the intermediate representation.