Demo: The Address Space, Line by Line¶
A program that waits so that pmap can look at it, built statically and dynamically.
Run¶
Two terminals. First:
Second, at each prompt:
Then the same with ./see-pmap.
Ask¶
- Twelve lines. Which came from the file, which are the heap and the stack, and which did nobody ask for?
- After allocating, only three lines changed. Which three, and in what direction?
- The dynamic build has twice the lines and a fifth of the
Dirtykilobytes. What is libc's code area sharing, and with whom?