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

CSL 243 - System Programming Paper

The document is a past exam paper for a System Programming course. It contains 8 questions across 4 sections on topics related to system programming such as assemblers, macro processors, loaders, compilers and code optimization. Some of the questions ask to explain concepts in detail with examples, show tables generated during different assembler/macro processor passes, discuss advantages and disadvantages of different loading techniques, and optimization transformations.

Uploaded by

Sakshat Vyas
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)
158 views

CSL 243 - System Programming Paper

The document is a past exam paper for a System Programming course. It contains 8 questions across 4 sections on topics related to system programming such as assemblers, macro processors, loaders, compilers and code optimization. Some of the questions ask to explain concepts in detail with examples, show tables generated during different assembler/macro processor passes, discuss advantages and disadvantages of different loading techniques, and optimization transformations.

Uploaded by

Sakshat Vyas
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/ 2

Department of Computer Engineering & Technology

B.Tech(CSE & CE) Semester- IV


End Semester Examination
CSL 243- System Programming

Time: 2 hours Maximum Marks: 100


Note: Attempt any four questions from the given eight.
Section A
Q1. For the following program show the entries in Symbol table, Literal table, Base table and
also write the object code generated at the end of pass 2:
TEST START 0
BEGIN BALR 15, 0
USING BEGIN+2, 15
SR 4, 4
L 3, =F'10'
LOOP L 2, DATA (4)
A 2, F’25’
ST 2, DATA (4)
A 4, =F'4'
BCT 3, LOOP
BR 14
LTORG
DATA DC F'2, 3, 4, 5, 6, 7, 8, 9, 0, 0’
END (25)

Q2. What are the functions of the passes used in the two-pass assembler? Explain pass1 of the
assembler in details. (25)

Section B
Q3.a. Explain the format of MNT, MDT and ALA with a suitable example. What is the
difference between ALA prepared in Pass-1 and Pass-2 of macro processor? (10)
b. For the following program show the MDT table after macro processing:
MACRO
XYZ &A
ST 1,&A
MEND
MACRO
MIT &Z
MACRO
&Z &W
AR 4,&W
XYZ ALL
MEND
ST &Z,ALL
MEND
PROG START
USING *,15
MIT HELLO
ST 2,3
HELLO YALE
YALE EQU 5
ALL DC F’3’
END. (15)
Q4. a. What are the advantages of Single Pass macro processor over 2-Pass macro processor?
Explain the Single Pass macro processor in details. (18)
b. Explain how MDI and MDLC help in designing a macro capable of handling macro
definition within a macro. (7)

Section C
Q5. a. Explain in details ESD, TXT, RLD and END cards used in direct linking loaders with the
help of a suitable example. (20)
b. What are linkage editors? How are they different from core image builders? (5)
Q6. a. Explain relocating loader in details with advantages and disadvantages. (15)
b. Write short notes on:

Dynamic loading

Bootstrap Loaders (10)

Section D
Q7. What are the advantages of code optimization? Explain various optimization
transformations. (25)
Q8. a. Discuss in details the working of lexical phase of compiler (15)
b. Briefly discuss text editors along with their types. (10)

You might also like