The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+20 votes

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.9k points)
edited by | 1.5k views

2 Answers

+34 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.1k points)
edited by
Regular expressions are used in lexical analysis,ryt?
Register allocation is a part of code optimisation.
How come ? Give source... acc. to me   During code generation, we allocate the registers..
–1 vote
answer - B
answered by Loyal (8.8k points)

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
48,721 questions
52,825 answers
68,572 users