The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+12 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 (68.1k points)
edited by | 713 views

2 Answers

+23 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.
0 votes
answer - B
answered by Boss (9.4k 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

29,961 questions
37,632 answers
35,286 users