(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.
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.
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 ...
(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.
(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 ...
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.
software design(POâBCG ). iv. Working skills in theory and application of finite state machines, recursive descent,. production rules, parsing, and language ...
(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 + ...
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.
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 ...
I Attempt any four questions: [5x4:20) (a) Describe the differences between symmetric and. asymmetric multiprocessing. (b) Discuss various operating system ...