Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 33s8 days 9 hours 54 minutes 33 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 33s8 days 9 hours 54 minutes 33 seconds.

Sign in to watch this lesson
Memory Virtualization · 5:00
Segmentation gives each piece of an address space (code, heap, stack) its own base and bounds, so the empty middle costs no physical memory. We translate OSTEP's examples bit by bit (VA 4200 -> 34920, not 39016), handle a stack that grows backwards (0x3C00 -> 27 KB), see where the name 'segmentation fault' comes from, check protection bits and shared code on an Apple M3, and watch external fragmentation stop a 20 KB request with 24 KB free.