Content:
UNIT-2 ASSEMBLERS
UNIT-3 LOADER AND LINKER
Attachment: click here
UNIT-2
ASSEMBLERS
Machine independent assembler object
Features
1. Literals
2. Symbol – defining system
3. Expression
4. Program block
5. Control section
Literal
Literal pool
Advantages
Literal table
Expression
Term
Absolute expression
Relative expression
Program block
Default
C data
C blocks
Control section and program linking
Syntax of control
External references
Assembler
One pass assembler
Types of one pass assembler
Load and go assembler
Forward reference in one pass assembler
One pass need to generate object code
Multi pass assembler
Implementation issue in two pass assembler
Address mode
1. Index addressing
2. Indirect addressing
3. PC-relative
4. Base relative
5. Immediate addressing
Program relocation
Need for program relocation
Absolute program
Segment
Jump with forward reference
UNIT-3
LOADER AND LINKER
Machine dependent loader features
Relocation
Methods of specifying relocation
Use of modification records
Use of relocation bit
Modification records
Text records
Program linking
EXTDEF
EXTREF
Implementation EXTDEF and EXTREF
Loader design option
Linking load
Loader option
1. Separate input line
2. Sources program
3. Embedded primary input and output
Common language
Deleting external reference
Changing external reference
Controlling automatic library search
Loader design option
Linkage editor
Dynamic linking
Boot strap loader
Process of object program
Other function
Dynamic linking
Pass of control
Attachment: click here