0% found this document useful (0 votes)
9 views

System Programming

The document is a question bank for a course on system programming, covering various topics related to compilers, assemblers, loaders, and parsing techniques. It includes questions on compiler phases, assembly language programming, dynamic loading, file formats, linking, and context-free grammars. Additionally, it requires practical programming tasks in Assembly Language and YACC, as well as theoretical explanations of data structures and parsing methods.

Uploaded by

Wanyama Gabriel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

System Programming

The document is a question bank for a course on system programming, covering various topics related to compilers, assemblers, loaders, and parsing techniques. It includes questions on compiler phases, assembly language programming, dynamic loading, file formats, linking, and context-free grammars. Additionally, it requires practical programming tasks in Assembly Language and YACC, as well as theoretical explanations of data structures and parsing methods.

Uploaded by

Wanyama Gabriel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SYSTEM PROGRAMMING

QUESTION BANK
1.List the phases that constitute the front end of a compiler?

2.Mention the back-end phases of a compiler?

3.Depict diagrammatically how a language is processed?

4.Write a program in Assembly Language to find sum of 10 numbers?

5.What do you mean by Dynamic Loading?

6.Give the uses of following directives: RESB, RESW, BYTE and WORD with
examples?

7.In an Assembler Design Process, what are the uses of following tables:
POT, MOT and SYMTAB? Explain their structures also.

8.What alternative data structures can be for MOT?

9.Explain the file formats: elf, coff, a.out?

10.Explain all types of loader?

11.Which amongst the one pass and two assembler is better and why?

12.Write down all the steps of Pass 1 and Pass 2 of Linking?

13.What do you mean by Static Linking?

14.Write a YACC program for Desk Calculator which can do following


operations (+, - , *, /, () ) ?

15.Write a program in LEX to count the number of identifiers, words,


characters, integers from a C file?

16.Write the actions of an LR Parse for the following string for the grammar
and parse table given below: aa1bbbb

Grammar:

S ->A

S->B
A->aAb

A->0

B->1

B->aBbb

17.Generate the object code for following Assembly Language Program?


consider start address to be 4000.
18.Explain the structure of section table in two pass assembler?

19.Consider the context-free grammar

S->aX

X-> bX | bY

Y->c

The symbols S,X,Y are non-terminals and S is the start symbol while a,b and
c are terminal symbols.

i) Give the canonical collections of LR(0) items for this grammar.


ii) Is this grammar SLR? Prove by constructing SLR Parsing table

You might also like