written 8.4 years ago by | • modified 8.4 years ago |
Mumbai University > Computer Engineering > Sem6 > System Programming and Compiler Construction
Marks: 10M
Year: Dec 2015
written 8.4 years ago by | • modified 8.4 years ago |
Mumbai University > Computer Engineering > Sem6 > System Programming and Compiler Construction
Marks: 10M
Year: Dec 2015
written 8.4 years ago by |
Loader:
The loader does the job of coordinating with the OS to get initial loading address for the .EXE file and load it into the memory.
Function of Loader:
Allocation:
Allocates the space in the memory where the object program would be loaded for Execution.
Linking: It links two or more object codes and provides the information needed to allow references between them.
Loading:
It brings the object program into the memory for execution.
Dynamic Linking Loader:
Length of segment.
A list of all symbols in the segment that may be referenced by other segments.
List of all symbols not defined in the segment but referenced in the segment.
Information where the address constant are loaded in the segment.
Format of Databases:
The assembler provides 4 types of record in the object file as follows:
1. External Symbol Dictionary (ESD)
2. Text Cards (TXT)
3. Relocation and Linkage Directory (RLD):
4. END CARD:
ESD
IT consist of three types of definition
SD- Segment Definition
LD – Local Definition
ER – External Reference
Symbol | Type | Id | RA | Length |
---|---|---|---|---|
PG1 | SD | 1 | 0 | 52 |
A | LD | 1 | 20 | - |
B | LD | 1 | 24 | - |
PG2 | ER | 2 | - | - |
C | ER | 3 | - | - |
Relocating and Linking directory (RLD)
Esd id | Symbol | Flag | R.A |
---|---|---|---|
1 | A | + | 40 |
1 | B | - | 44 |
3 | C | - | 48 |
Note:
5. END