提纲 background Contiguous Memory Allocation(连续内存分配) Swapping Paging(分页) Structure of the Page Table Segmentation(分段) Segmentation with paging(段页式) 小结 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 提纲 background Contiguous Memory Allocation (连续内存分配) Swapping Paging (分页) Structure of the Page Table Segmentation (分段) Segmentation with paging (段页式) 小结
Outline background Storage hierarchy Memory protection Program execution,loading linking 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline background Storage hierarchy Memory protection Program execution, loading & linking
Outline background Storage hierarchy Memory protection Program execution,loading linking 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline background Storage hierarchy Memory protection Program execution, loading & linking
Storage hierarchy I Storage hierarchy Registers Storage systems in a computer system can be organized in a Cache hierarchy(层次结构) Main memory Speed,access time Electronic disk Size,cost,cost per bit Volatility VS.persistency Magnetic disk Optical tapes Magnetic tapes Main memory is the only large storage area that the processor can access directly. MM is a scarce resource(稀缺资源) 口”484在4色”主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storage hierarchy I Storage hierarchy ▶ Storage systems in a computer system can be organized in a hierarchy(层次结构) ▶ Speed, access time ▶ Size, cost, cost per bit ▶ Volatility VS. persistency Registers Cache Main memory Electronic disk Magnetic disk Optical tapes Magnetic tapes ▶ Main memory is the only large storage area that the processor can access directly. ▶ MM is a scarce resource(稀缺资源)
Memory VS.register Same:Access directly for CPU Register name Memory address Different:access speed,size Register,one cycle of the CPU clock Memory,Many cycles(2 or more),CPU stall Disadvantage: CPU needs to stall frequently this is intolerable Remedy cache 4口”4614在4生”主QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory VS. register ▶ Same: Access directly for CPU ▶ Register name ▶ Memory address ▶ Different: access speed, size ▶ Register, one cycle of the CPU clock ▶ Memory, Many cycles (2 or more), CPU stall ▶ Disadvantage: ▶ CPU needs to stall frequently & this is intolerable ▶ Remedy ▶ cache