Question 9459 – Compilers
November 14, 2023Environment
November 14, 2023Question 7966 – Compilers
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:
Correct Answer: C
Question 11 Explanation:
Character stream is input to lexical analyzer which produces tokens as output. So Q → (iv).
Token stream is forwarded as input to Syntax analyzer which produces syntax tree as output. So, S → (ii).
Syntax tree is the input for the semantic analyzer, So P → (iii).
Intermediate representation is input for Code generator. So R → (i).
Token stream is forwarded as input to Syntax analyzer which produces syntax tree as output. So, S → (ii).
Syntax tree is the input for the semantic analyzer, So P → (iii).
Intermediate representation is input for Code generator. So R → (i).
P→(ii), Q→(iii), R→(iv), S→(i)
P→(ii), Q→(i), R→(iii), S→(iv)
P→(iii), Q→(iv), R→(i), S→(ii)
P→(i), Q→(iv), R→(ii), S→(iii)