Re:Linear Address Spaces: Unsafe at any speed
by StillBored on Friday July 01, 2022 @01:26PM
(#31949737)
The 386 segmentation system exists above the paging portion of the MMU, so it is possible to move them around without physically copying memory (or adjusting the segment+offset).
Here is a somewhat reasonable diagram of how it all works
https://stackoverflow.com/questions/4039325/assembly-segment...
(although i'm probably agreeing with you)
The problem was mainly caused by having no MMU, so moving around objects in order to save space required adjusting pointers. Today, a copying garbage collector will do the same thing; rewrite all the links among the moved objects. You'd have similar hacks on Apple Macintoshes, with their MC68K processors and flat space, like doubly indirected objeccts managed by "handles" and whatnot.