System Programming Question Paper GTU
System Programming Question Paper GTU
___________
Q.1 (a) Draw neat sketch diagram of Life cycle of a source program. 03
(b) Define following: Language Migrator, Execution gap, Token, Handle 04
(c) Explain Analysis and Synthesis phase of Compiler. 07
Perform lexical, syntax and semantic analysis on below C statement:
int i;
float a, b;
a = b + i;
Q.3 (a) Define Assembler. List out tasks performed during different phase of assembler. 03
(b) Given the Grammar, evaluate the string id - id * id using shift reduce parser. 04
E-> E – E
E -> E * E
E -> id
(c) Compare Variant I and Variant II of intermediate code generation for assembler. 07
Write intermediate code for Variant I and Variant II of below program fragment.
START 200
READ A
LOOP MOVER AREG, A
.
.
.
SUB AREG,=’1’
BC GT,LOOP
STOP
A DS 1
LTORG
…
1
OR
Q.3 (a) Define forward references. How it can be solved using back-patching. 03
(b) Describe following data structures: OPTAB, SYMTAB, LITTAB and 04
POOLTAB.
(c) List out assembler directives and explain any two advance assembler directives. 07
************