What About The Stack?

This lesson addresses how segmentation works in the stack with the help of an example.

We'll cover the following...

Thus far, we’ve left out one important component of the address space: the stack. The stack has been relocated to the physical address 28KB in the diagram above, but with one critical difference: it grows backwards (i.e., towards lower addresses). In physical memory, it “starts” at 28KBAlthough we say, for simplicity, that the stack “starts” at 28KB, this value is actually the byte just below the location of the backward growing region; the first valid byte is actually 28KB minus ...