The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+19 votes
1.4k views

Match all items in Group 1 with the correct options from those given in Group 2.

Group 1 Group 2
P. Regular Expression 1. Syntax analysis
Q. Pushdown automata 2. Code generation
R. Dataflow analysis 3.  Lexical analysis
S. Register allocation 4. Code optimization
  1. $\text{P-4, Q-1, R-2, S-3}$
  2. $\text{P-3, Q-1, R-4, S-2}$
  3. $\text{P-3, Q-4, R-1, S-2}$
  4. $\text{P-2, Q-1, R-4, S-3}$
asked in Compiler Design by Veteran (59.7k points)
edited by | 1.4k views

2 Answers

+31 votes
Best answer

Regular expressions are used in lexical analysis.

Pushdown automata is related to context free grammar which is related to syntax analysis.

Dataflow analysis is done in code optimization.

Register allocation is done in code generation.

Ans B

answered by Loyal (6.2k points)
edited by
+3
Regular expressions are used in lexical analysis,ryt?
+1
Register allocation is a part of code optimisation.
0
How come ? Give source... acc. to me   During code generation, we allocate the registers..
–1 vote
answer - B
answered by Loyal (8.8k points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

44,494 questions
49,944 answers
165,713 comments
65,911 users