CS2006 2 Sem
CS2006 2 Sem
. Page I of 3 23MF'2CS2006
PART-B(5x16=80Marks)
11.a. Write the functions performed in Pass I and Pass II of a
b. Construct SLR parsing table lbr the following grarnmar,
two pass assembler. Explain pass II of two pass assembler
,S -+ CC
with an example,
C-+cC
(oR) C-+d
b. Write short notes on : and show the parsing action for the string cdcd.
(i) Search Data Structure
(iD Assemblerdirectives 15. a, What is three address code? Mention its types? How
would you implement thee address statements? Explain
12. a. Explain in detail about the data structure used for design with suitable example.
of a macro preprocessor,
(oR)
(oR) b.i. Discuss the various issues in the design of code generator
b.i. Compare Linking Loader and Linkage editor. with example. (12 Marks)
ii. Explain program relocation concept with suitable example. 11. Define: Common sub expression elimination and dead
code elimination with example. (4 Marks)
13. a. How would you get a DFA from a regular expression?
Obtain DFA for the regular €xpression. **r.'1.
(%)(%)(%)
(oR)
b, Discuss in detail about the analysis and synthesis stages of
a compiler with suitable example.
(oR)
Page 2 of3 23MF2CS2006 Page 3 of3 23M!2CS2006