Printed Pages : r

3

rilltlfftru fffi|llil f]lllilt til

ECS603

(Follorring Paper ID and RoIt No. to be fitled in yourAnswer Book)

Roll No.

B. Tech. (sEM. Vr) Tr{EORy EXAMINATION, 2014-ts COMPILER DESIGN Time : 3 Hours]

[Total Marks : 100

Note

:

I

Attempt any four parts of the

Attempt all Questions.

(a) (b) (c) (d)

following.

Explain all the necessary phases and passes compiler design.

5x4=20

ofa

What is a cross compiler ? How is boot-strapping of a compiler done to a second machine ?

Write short note on

G) G)

:

Context free grammar

Yacc parser generator.

Check whether left recursion exists for the following

griurunar:

Aalb A-+AclSdle S -+

1r060sl

I

I Contd...

(e)

F{ow does finite automata usefi.rl for l€r
Construct the NFA and-DFA for the following regular e4pression

(a+b)*

(0

abb.

Discuss the role

of

Macros

in

programming

languages.

Attempts any two parts of the following

(a)

:

l0x2=20

Generate

tlree address code for the following code

segment

:

While (acb) do

If(c
(b) (c)

What is synt&x directed translation ? How are semantic actions attached to the production ? Expalin with an example. What is postfix translation ? Esplain it with zuitable example.

Attempts any two parts of the following

(a)

:

l0x2=20

Construct the CLR parse table for the following Granrnar.

-+CC C -+cC S

C 1106031

-+d 2

I Contd...

(b) .

Gve algorithm for constructing ofpredictive parsing table. Considerthe following graffinar and construct predictiv_e parsing table

s

+iEts\ta

Sr-+eSlE E -+b

G)

Describe various representation of three address codes. Translates the expression :

-(a +b)*

4

+d)+(a+b

+ c)

Attempts any two parts of the following

:

l0x2:20

(a)

Discuss the various data structures used for symbol

O)

table with suitable example. Write short note on

G) G)

(rn)

G)

Scoping

Activation record Backpatching

What do you understand by lexical error and syntactic error of errors..

5

(c

?

Also suggest methods for recovery

Attempts any two parts of the following : l0x2=20 (a) What is DAG ? What are its advantages in context ofoptimization ? O) What is data flow analysis ? How does it use in code optimization?

(c)

r106031

Explain what constitute a loop in a flow graph and how will you do loop optimizations in code optimization of a compiler.

u447sl

UPTU B.Tech Compiler Design ECS603 Sem 6_2014-15.pdf ...

G) Context free grammar. G) Yacc parser generator. (d) Check whether left recursion exists for the following. griurunar: S -+ Aalb. A-+AclSdle. 1r060sl I I Contd.

925KB Sizes 2 Downloads 177 Views

Recommend Documents

UPTU B.Tech Compiler Design - ECS 603 Sem 6_2013-14.pdf ...
UPTU B.Tech Compiler Design - ECS 603 Sem 6_2013-14.pdf. UPTU B.Tech Compiler Design - ECS 603 Sem 6_2013-14.pdf. Open. Extract. Open with. Sign In.

UPTU B.Tech Mechanical System Design EME-043 Sem 7_2011-12 ...
UPTU B.Tech Mechanical System Design EME-043 Sem 7_2011-12.pdf. UPTU B.Tech Mechanical System Design EME-043 Sem 7_2011-12.pdf. Open. Extract.

UPTU B.Tech Machine Design-II EME602 Sem 6_2012-13.pdf ...
Fuel consumption : 0.2Kgper Brake power per.hour. Higher Calorific value of fuel: 43 x 103 kJ/Kg. Speed : 2000RpM. Any other data required for the design may ...

BTECH(PS)4TH SEM(P)......PDF
Himanshu Kumar. Aditi Bhardwaj. Aayushi Joshi. Swati Badhan. Roohi Mittal. Aarushi Mathur. Diksha Gautam. Martin Vanlalsawma Thiek. Arvind Kumar Mahto.

UPTU B.Tech Advanced Foundation Design ECE 011 Sem 6_2011 ...
(c) A long flexible strip footing of 2.5 m width having a. smooth base is ... Displaying UPTU B.Tech Advanced Foundation Design ECE 011 Sem 6_2011-12.pdf.

UPTU B.Tech Hydraulics & Hydraulic Machines NCE403 Sem ...
(e) On what factors does the Manning's rugosity'corefficient ... Displaying UPTU B.Tech Hydraulics & Hydraulic Machines NCE403 Sem 4_2014-15.pdf. Page 1 ...

UPTU B.Tech Wireless & Mobile Communication EEC801 Sem ...
UPTU B.Tech Wireless & Mobile Communication EEC801 Sem 8_2014-15.pdf. UPTU B.Tech Wireless & Mobile Communication EEC801 Sem 8_2014-15.pdf.

UPTU B.Tech Advanced Materials Technology EME063 Sem ...
Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... Main menu. Displaying UPTU B.Tech Advanced Materials Technology EME063 Sem 8_2011-12.pdf.

UPTU B.Tech NonConventional Energy Resources EOE081 Sem ...
UPTU B.Tech NonConventional Energy Resources EOE081 Sem 8_2014-15.pdf. UPTU B.Tech NonConventional Energy Resources EOE081 Sem 8_2014-15.

Compiler Design Syllabus.pdf
software design(PO→BCG ). iv. Working skills in theory and application of finite state machines, recursive descent,. production rules, parsing, and language ...

UPTU B.Tech Computer Aided Design EME-701 Sem 7_2013-14.pdf
(a) Find the blending functions of Bezier curve for five control. points. Plot the blending functions. (b) Cubic spline curve is definedby the equation. P(u): Cru3 + ...

UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf
UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf. UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf. Open. Extract. Open with. Sign In.

UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010 ...
UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010-11.pdf. UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010-11.pdf. Open.

UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015 ...
UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015-16.pdf. UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015-16.pdf. Open.

UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013 ...
UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013-14.pdf. UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013-14.pdf. Open.

UPTU B.Tech Electronic Circuits NEC402 Sem 4_2014-15.pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

UPTU B.Tech Power station practice0001 Sem 6_2007-08.pdf ...
There was a problem loading more pages. Retrying... UPTU B.Tech Power station practice0001 Sem 6_2007-08.pdf. UPTU B.Tech Power station practice0001 ...

UPTU B.Tech Operating System NCS401 Sem 4_2014-15.pdf ...
I Attempt any four questions: [5x4:20) (a) Describe the differences between symmetric and. asymmetric multiprocessing. (b) Discuss various operating system ...

UPTU B.Tech ECS-602 Software Engineering Sem 6_2010-11.pdf ...
UPTU B.Tech ECS-602 Software Engineering Sem 6_2010-11.pdf. UPTU B.Tech ECS-602 Software Engineering Sem 6_2010-11.pdf. Open. Extract. Open with.