MU Computer Engineering (Semester 6)
System Programming And Compiler Construction
May 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Differentiate between application program and system program.
5 M
1 (b) State the reason for assembler to be multipass program.
5 M
1 (c) Explain Functions of loader.
5 M
1 (d) What is flow graph? State its significance in code generation.
5 M

2 (a) For following code what will be output generated by Pass-I and Pass-II for two pas assembler. Explain with database.
ABC Start 0
  USING *15
  L 1, FIVE
  A 1, FOUR
  ST 1, TEMP
FOUR DC F'4'
FIVE DC F'5'
TEMP DS 1F
  END  
10 M
2 (b) Explain operator precedence parser along with example.
10 M

3 (a) Generate there address code for following code.
while (a if (c x=y+2
else
x=y-2
10 M
3 (b) Discuss with example quadrupts, triple and indirect triple.
10 M

4 (a) Construct predictive parsing table for following grammar.
S?A
A?aB|Ad
B? bBC|t
C?R
10 M
4 (b) Explain loop optimization with example.
10 M

5 (a) What are different issues in code 'Generalization' explain in detail.
10 M
5 (b) Explain run time storage organization in details.
10 M

Write short notes on:
6 (a) Code motion.
5 M
6 (b) LEX and YACC
5 M
6 (c) Software tools
5 M
6 (d) Left recursion and left factoring removal technique.
5 M



More question papers from System Programming And Compiler Construction
SPONSORED ADVERTISEMENTS