III B.E. (Computer Engg.)

VIII SEMESTER

8 CP9 SYSTEM PROGRAMMING LAB -II

 

Program Writing in C/C++

 

1,2. Write a program to identify data storage statements in an 8086 assembly language program and estimate the size of data segment.

 

3.    Write a program to identify macro definitions in an assembly language program.

 

4,5.  Extend the above program to implement simple and recursive macro expansion.

 

6.    Write a program to process 'include' and 'define' macros in language.

 

7,8. Write a program to parse source code strings of C-language and identify tokens in ten DS of keywords and identifiers.

 

9.   Construct parse tree of arithmetic statements in C language program.

 

10.  Write a program to optimize the source pro~ for operator strength reduction', 'dead code elimination and frequency reduction transformation.

 

11,12 Design a simple high level language containing arithmetic and logic operations, pointers, branch and loop instructions. Write its lexical analyser using lex.