SP Assignment
SP Assignment
Q.11 For the following assembly language program, show its symbol table, literal
table, Base table & generated machine code (CO-1)
TEST START
BEGIN BALR 15,0
USING BEGIN+2,15
SR 4,4
L 3, =F’10’
LOOP L 2,DATA(4)
A 2, =F’49’
ST 2, DATA(4)
A 4, =F’4’
BCT 3, *-16
BC 14
DATA DC F ‘1, 2, 3, 4,5’
END
Q.12 For the following program draw the symbol table, literal table, base table and
object code (CO-1)
Location Statement No. PROG START 0
BALR 15, 0
USING , 15
LR 5, 15
LH 1, Data 1
USING , 10
BR 14
DATA 2 DC F '11'
DATA 1 DC H '22'
TRS DC H '23'
BCK DS F
AA EQU 1
DP EQU 2
BALR 2, 0
USING + AA, TRS
LA 7, = A(BCK)
BR 6,
DC H '64'
DROP DP
L 9, = A(DATA 1)
A 9, TRS
LTORG
ST Q, = F '100'
END
UNIT – II
Q1. Explain with flowchart simple onepass macro processor. (CO-2)
Q2. What are the features of macro facility? (CO-2)
Q3. For the following program show MNT, MDT, ALA and expanded assembly
language program. (CO-2)
MACRO
STORE &ANS
ST 1,&ANS
MEND
MACRO
TRY &ADD,&DEST
SR 1,1
MACRO
&ADD &A,&B
L 1,&A
A 1,&B
MEND
&DEST DS F
MEND
ARITH START 0
USING *,15
TRY PLUS,RESULT
PLUS N1,N2
STORE RESULT
N1 DC F ‘4’
N2 DC F ‘5’
END
Q4. What databases are used by the two passes of macro processor ? Explain
advantages and disadvantages of combining macro processor with assembler.
(CO-2)
Q5. for the following Assembly program prepare MDT, MNT and ALA. Also
write the expanded source code:- (CO-2)
Source
MACRO
& lab1 INCR &arg 1, &arg 2, &arg 3
& lab1 A 1, &arg1
A 2, &arg2
A 3, &arg3
MEND
:
:
LOOP1 INCR data1, data2, data3
:
:
LOOP2 INCR data3, data2, data1
:
:
data1 DC F ‘5’
data2 DC F ‘6’
data3 DC F ‘7’
Q6. for the following Assembly program prepare MDT, MNT and ALA. Also write the
expanded source code:- (CO-2)
MACRO
OPERATE &MACRON, &OP
MACRO
&MACRON &A1, &B1
L 1, &A1
&OP 1, &B1
ST 1, &B1
MEND
MEND
……
…….
DATA 1 DC F ‘20’
DATA 2 DC F ‘30’
DATA 3 DC F ‘40’
…….
…….
OPERATE ADD, A
OPERATE SUB , S
…………
………..
ADD DATA 2, DATA 3
………
………
END
Q7. for the following Assembly program prepares MDT, MNT andALA. Also write the
expanded source code:- (CO-2)
MACRO
STORE &ANS
ST 1,&ANS
MEND
MACRO
TRY &ADD,&DEST
SR 1,1
MACRO
&ADD &A,&B
L 1,&A
A 1,&B
MEND
&DEST DS F
MEND
ARITH START 0
USING *,15
TRY PLUS,RESULT
PLUS N1,N2
STORE RESULT
N1 DC F ‘4’
N2 DC F ‘5’
END
MACRO
EXPO &EXP
LCLA &N
&N SETA &EXP
AIF (&N EQ 1).STOP
MR 1, 2
SETA &N -1
EXPO &N
.STOP ANOP
MEND
EXPON START 0
USING *,15
L 2,BASE
L 1,BASE
SR 0, 0
EXPO 3
ST 1, ANS
BR 14
ANS DS F
BASE DC F ‘5’
END
Q9. Explain in detail the two pass macro processor with the help of neat and clean
flowchart. What macro facilities are restricted in this design? (CO-2)
UNIT – III
Q1. Draw a detailed flowchart for pass-2 of Direct Linking Loader of IBM 360 m/c.
Q2. Write short noteson any two.
i) Compiler and Go Loader
ii) Dynamic Linking and Dynamic loading.
iii) Absolute Loader.
Q3. Explain the term dynamic Loading & dynamic Linking with suitable example.
Q4. What are the advantages of dividing loader into two separate programs
viz:Binder Module Loader.
Q5. Explain the formats of GEST and LESA of Direct Linking loader
Q6. Explain relocating loader in detail with advantages and disadvantages
Q7. Explain in detail about Dynamic linking and dynamic loading with example
Q8. Show the entries in ESD, TXT and RLD Cards for the following Program
JOHN START
ENTRY SUM, DATA
EXTRN LOOP, POINTER
BALR 15, 0
USING *, 15
SR 4, 14
L 1, FOUR
A 2, FOUR
ST 2, FOUR
BR 14
FOUR DE F’4’
LOOP DC A(SUM+4)
POINTER DC A(LOOP-DATA)
DC A(POINTER-LOOP)
DC A(POINTER)
END
Q9. Write short note on link Editor.
Q10. What are the basic functions of Loader? Explain.
Q.11 Explain in detail Dynamic Linking and Dynamic Loading
DATTA MEGHE INSTITUTE OF ENGINEERING TECHNOLOGY & RESEARCH
Sawangi (Meghe), Wardha
Off: 07152-287893, 287894, Principal Office : 07152-287891. Fax:- 07152-287892
Web site :www.dmietr.edu.in
UNIT – IV
Q1. Explain COFF symbol table and string table.
Q2. Explain the concept of storage classes.
Q3. What is symbolic debugger? Explain in brief.
Q4. Write short notes on:
i) Source code control system.
ii) Link Editor.
Q5. Explain in detail the format of common object file.
Q6. Write a note on link editor.
Q7. What is symbolic debugger? Explain in brief.
Q8. Write short note on Source Code Control System (SCCS).
Q9. Explain make and Link Editor.
UNIT-V
Q1. Explain in detail different types of windows device drivers?
Q2. What is Device Driver? Explain the necessity of device driver.
Q3. Explain various sections involved in line printer driver.
Q4. What are the major design issues of Unix Device Driver?Explain.
Q5. Write a note on driver memory allocation.
Q6. What are the major design issues inthe study of device driver? Elaborate
Q7. Describe in detail the anatomy and types of device driver in UNIX SYSTEM
Q8. Differentiate between Character Driver and STREAM Driver.
Q9. Explain the following entry point and routine for device driver of a line
printer:
i) Init
ii) LpWork
iii) Open
Q10. Design a device driver for handling a RAM disk.
Q11. Explain the steps in installation of Unixdevice drivers in detail.
Q12. Explain various sections involved in line printer driver.
Q13. What are the steps involved in installing a device driver in UNIX system? Explain
each step in detail.
Q14. Differentiate between block device driver and character device driver with diagram.
Q15. What is the role of terminal & stream driver explain with example?
UNIT-VI
Q1. What are the different phases of compiler? Explain in brief.
Q2. Explain cross compiler and Boot strapping.
Q3. Explain YACC in Details
Q5. List reasons for separating the analysis phase of compiling into lexical analysis
and parsing.
Q6. What is compiler? Explain in brief the various databases used in Lexical phase
of compiler.
Q7. Describe LEX as a tool, for system programming.
Q8. What is compiler? Draw a block diagram of the phases of compiler and indicate
the main function of each phase.
Q9. How tokens are recognized by lexical phase? Explain in detail.
Q10. Write short note on Regular Expression.
Q11. What is token? How tokens are specified? Explain how tokens are recognized.