Professional Documents
Culture Documents
QUESTION BANK
SEMESTER: 6 SUBJECT: System Software and Compiler Design SUB CODE: 15CS63
MODULE I
Questions Marks
1. What is system software and Explain Diff between two types of software with examples? 4
2. Explain the SIC machine architecture in detail. 8
3. Write a SIC/XE program to copy array A of 100 words to array of B of same size 6
4. Explain the instruction formats and addressing modes of SIC/XE machine architecture 6
5. What are the Different types of assemblers and Explain the Data Structures used in assemblers 7
6. Suppose alpha is an array of 100 words. Write a sequence of instructions for SIC\XE to set all 100 elements to
0
7. What is Program Relocation? Explain the problem associated with it and there solution 5
8. Give the format of the following: header, text, end and modification record 5
9. Give the algorithm for pass1 of and 2 pass assembler 5
10. Explain the following: SYMTABLE,LOCCTR,OPTAB 4
11. Define MACRO Briefly explainthe various data structures used in the design of MACRO PROCESSOR 5
MODULE II
Questions Marks
1. With source code, explain the working of boot-strap loader
6
2. Explain machine dependent features of loader
5
3. Write the algorithm of absolute loader. 5
4. Define program relocation. Explain the different ways of doing program relocation 6
5. With an algorithm, explain pass1 of a linking loader 6
6. Explain the facilities available in MS-DOS liker for program linking 5
7. Explain briefly the design options of loaders
8. What are the basic functions of a loader? Develop an algorithm for a bootstrap loader . 8
9. What is the difference between linkage editor and linking loader?
10. What is dynamic binding? explain the process of loading and calling a subroutine using dynamic 6
binding
11. Explain various data structures used for a linking loader. 6
12. With the help of an example show how relocation and linking operations are performed. 5
MODULE III
Questions Marks
1. Explain with a neat diagram phases of a compiler by taking an example A=B+C*50. 10
2. What is token, pattern and lexeme? Give example for each 3
3. Write the look ahead code with sentinels for input buffering used in lexical analysis 5
4. Construct a transition diagram for identifier and unsigned numbers 6
5. Write a regular definitions for i) identifier ii) unsigned number 4
6. What is regular expression? Write the algebraic laws of regular expression 7
7. What is printed by the following code 2
#define a (x+1)
int x=2;
CBIT, KOLAR Page 2 of 3
5. S->(L)|a 10
L->L,S|S
Make the grammar suitable for top down parsing. Construct predictive parsing table and parse the input string (())
6. What is Handle pruning? Give Bottom up parses for the input string aaa*a++ using the grammar 6
S->SS+ | SS* | a
7. Explain the working of shift reduce parser. Give shift reduce configuration on the input string 000111 using the 5
grammar
S->0S1|01