The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+17 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. P-4, Q-1, R-2, S-3
  2. P-3, Q-1, R-4, S-2
  3. P-3, Q-4, R-1, S-2
  4. P-2, Q-1, R-4, S-3


asked in Compiler Design by Veteran (69k points)
edited by | 923 views

2 Answers

+28 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 Boss (6.3k 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..
–2 votes
answer - B
answered by Boss (9.3k 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

33,707 questions
40,253 answers
38,874 users