Lecture 014

Address Space (1)

Every .o file use the same address space. Linker combine addres space while linking.

Every .o file use the same address space. Linker combine addres space while linking.

When a computer needs to run multiple programs at the same time, we need solution

When a computer needs to run multiple programs at the same time, we need solution

Potential Solutions:

Contiguous Allocation: simple mapping function

Contiguous Allocation: simple mapping function

Contiguous Allocation:

Paging: any page can map to any frame

One-layer Page Table

One-layer Page Table

One-layer page table:

Since memory is "sparse list of dense list", giving entire address space a page table entry is wasteful. So we need multi-layer page table.

Segmentation and Paging

Segmentation and Paging

So you specify segment number and offset (implicitly), then it got translate to linear address space, then page table map linear address space to physical memory by translate page to frame address.

ASLR is not that secure and hurt performance, it is over.

Table of Content