Chapter 3 Memory Management
Chapter 3 Memory Management
Content Why need memory management ☆ Memory partitioning 令 Paging ☆ Segmentation MEMORY MANAGEMENT
MEMORY MANAGEMENT Content ❖Why need memory management ❖Memory partitioning ❖Paging ❖Segmentation
3.1 Memory Management Requirements(p289) Relocation(重定位) A Memory protection(保护) 如 Memory sharing(共享 a Logical organization(逻辑组织) A Physical Organization(物理组织) MEMORY MANAGEMENT
MEMORY MANAGEMENT 3.1 Memory Management Requirements (p289) ♣ Relocation(重定位) ♣ Memory Protection(保护) ♣ Memory Sharing(共享) ♣ Logical Organization(逻辑组织) ♣ Physical Organization(物理组织)
Relocation(重定位p290) The processor and os translate the memory references found in the code of the program into actual physical memory addresses, which reflecting the current location of the program in main memory(程序代码中地址引用翻译为主存中当前 地址的过程) MEMORY MANAGEMENT
MEMORY MANAGEMENT Relocation (重定位p290) • The processor and OS translate the memory references found in the code of the program into actual physical memory addresses, which reflecting the current location of the program in main memory.(程序代码中地址引用翻译为主存中当前 地址的过程)
Relocation(p290) Static relocation(静态,一次性重定位 Relocate when compile program or load in program Dynamic relocation(动态,可多次重定位 Relocate when running program. Contents for relocation(定位内容) Branch instruction(分支指令) Reference to data(数据引用) MEMORY MANAGEMENT
MEMORY MANAGEMENT Relocation (p290) • Static relocation(静态,一次性重定位) • Relocate when compile program or load in program. • Dynamic relocation(动态,可多次重定位) • Relocate when running program. • Contents for relocation(定位内容) • Branch instruction(分支指令) • Reference to data (数据引用)