Compiler Design PYQP
Compiler Design PYQP
of Printed Pages 02
Total No. of Questions: 05
RollNo. 20100BIBDAL01223
BTCSIBM601
B.Tech. (CSE-BDAI/ CSE-DSI)
VIISemester Examination, December 2023
Fundamental of Compiler Design
Choice Based Credit System (CBCS)
Maximum Marks: 60
Time: 3 Hrs.
Minimum Pass Marks: 24
OR
Q.2(AY Explain the leftmost and rightmost derivations with suitable examples. 03
(a) YACC
(b) Ambiguous Grammar
OR
03
Q.3/A) What is Syntax Directed Definition? Also. explain its roles in translation.
(Synthesized) and L-attribute Definitions
Y Differentiate between S-attribute Definitions 03
(Inherited).
Contd........
1
Construct Three address code for following statements: 06
do
X=y+z
while x<20
OR
X=X+1
03
Q.4A llustrate optimization techniques with suitable examples.
03
(BY Describe Quadruples, Triples with suitable example.
06
(C) Construct DAGfor followingstatement:
a=b *minus c + b* minus c
OR
Explain the working of Error Handler. Also explain Error detection and recovery mechanisms.
03
Q.5A) Expiain the challenges of the design of target code generation.
B llustrate about the various data structures used in Runtime Storage management. 03
(C) Describe how Giobal Data Flow Analysis is useful for code optimization. 06
OR
tAlustrate why Peephole Optimization is useful for target code optimization.
XXXXXXX