Loading Linking(P311) Create a process image(f-7.13) A loading scenario(f-7. 14) MEMORY MANAGEMENT
MEMORY MANAGEMENT Loading\ Linking (P311) • Create a process image(f-7.13) • A loading scenario(f-7.14)
A loading Scenario(Fig 7. 14) Library Module#1 Linker Load Loader Module#2 RAM Module Module#tn MEMORY MANAGEMENT
MEMORY MANAGEMENT A loading Scenario (Fig 7.14) Library Module#1 Module#2 Module#n Linker Load Module Loader RAM
Loading Type(p313) Absolute loading Relocatable loading Dynamic run-time loading MEMORY MANAGEMENT
MEMORY MANAGEMENT Loading Type(p313) • Absolute loading • Relocatable loading • Dynamic run-time loading
Absolute Loading Absolute address(F7 15b) Always be loaded into the same location The assignment of specific address values to memory reference(内存引用的地址变换) be done by programming or compile time. Not transparent to programmer All code in a program must be recompiled after modified MEMORY MANAGEMENT
MEMORY MANAGEMENT Absolute Loading ➢ Absolute address(F7.15b). ➢ Always be loaded into the same location. ➢ The assignment of specific address values to memory reference(内存引用的地址变换) be done by programming or compile time. ➢ Not transparent to programmer. ➢ All code in a program must be recompiled after modified
Relocatable Loading Relative address引相对地址)(F715c) v No need always load into same location √ Need a relocation dictionary(重定位表) in loading modules ( generated at compile time) MEMORY MANAGEMENT
MEMORY MANAGEMENT Relocatable Loading ✓ Relative address(引用相对地址)(F7.15c) ✓ No need always load into same location. ✓ Need a relocation dictionary(重定位表) in loading modules (generated at compile time)