From e8616df2031b39535e62dce1142b029e65723c95 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 11:52:21 -0300 Subject: design: the address space as one tall rectangle; aligned as a listing From the user. segments is the textbook picture: one rectangle, high addresses on top, each mapping a band in its ink (heights by the log of their size, holes folded with their size beside them), labels outside on leaders, a file's mappings bracketed as one, the stack's and the heap's growth as arrows, rsp and rip pinned in their bands. aligned is one panel: a line as the head of its instructions, line numbers and addresses in one column since both say where, a rule over every head. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/34-segments.svg | 213 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 design/mock/34-segments.svg (limited to 'design/mock/34-segments.svg') diff --git a/design/mock/34-segments.svg b/design/mock/34-segments.svg new file mode 100644 index 0000000..5c5505b --- /dev/null +++ b/design/mock/34-segments.svg @@ -0,0 +1,213 @@ + + + +ffffffffffffffff + + + +--x +[vsyscall] +4 KiB +ffffffffff600000 + + + + +nothing mapped · 15 EiB + + + +rw- +[stack] +132 KiB +7ffffffde000 + + + + +nothing mapped · 127 MiB + + + +rw- +data (anonymous) +4 KiB +7ffff7ffe000 + + + +rw- +data +4 KiB +7ffff7ffd000 + + + +r-- +read-only +8 KiB +7ffff7ffb000 + + + +r-- +read-only +60 KiB +7ffff7fec000 + + + +r-x +code +180 KiB +7ffff7fbf000 + + + +r-- +read-only +4 KiB +7ffff7fbe000 + + + +r-x +[vdso] +8 KiB +7ffff7fbc000 + + + +r-- +[vvar] +24 KiB +7ffff7fb6000 + + + +r-- +read-only +260 KiB +7ffff7f75000 + + + +rw- +data (anonymous) +20 KiB +7ffff7f70000 + + + + +nothing mapped · 1.3 MiB + + + +rw- +data (anonymous) +32 KiB +7ffff7e1b000 + + + +rw- +data +8 KiB +7ffff7e19000 + + + +r-- +read-only +16 KiB +7ffff7e15000 + + + +r-- +read-only +472 KiB +7ffff7d9f000 + + + +r-x +code +1.5 MiB +7ffff7c24000 + + + +r-- +read-only +144 KiB +7ffff7c00000 + + + + +nothing mapped · 127 TiB + + + +rw- +[heap] +132 KiB +1004000 + + + +rw- +data +4 KiB +1003000 + + + +r-- +read-only +4 KiB +1002000 + + + +r-x +code +4 KiB +1001000 + + + +r-- +read-only +4 KiB +1000000 + + + +ld.so + + + +ld.so.cache + + + +libc.so.6 + + + +list +0 + + + + +rsp + +rip + +the address space +high addresses on top · not to scale: holes 40, bands by the log of their size + -- cgit v1.3