From 4c7dcadeddaa50fb52fd44a2cc71df1f570e092a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 12:08:00 -0300 Subject: design: the address space said with less; a word read low byte first; aligned in two forms From the user. The address space is a slim bar to true scale with its two ends written, each cluster enlarged once beside it, and every band carrying the addresses where it starts and stops and its size; no rulers, no factors. The stack's bytes on screen are tied to their place in it. regroup is drawn: a word's eight bytes fly out low byte first and land reversed as its sixteen digits. aligned has two forms a scene asks for by name: interleaved, a line as the head of its instructions, and columns, the source beside them with each line as tall as its run. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/35-segments-abc.svg | 540 +++++++++++++++++----------------------- 1 file changed, 228 insertions(+), 312 deletions(-) (limited to 'design/mock/35-segments-abc.svg') diff --git a/design/mock/35-segments-abc.svg b/design/mock/35-segments-abc.svg index 9c0c154..0680495 100644 --- a/design/mock/35-segments-abc.svg +++ b/design/mock/35-segments-abc.svg @@ -1,314 +1,230 @@ - + - -A -true scale, then magnified: the recommended - - - -0 TiB - -16 TiB - -32 TiB - -48 TiB - -64 TiB - -80 TiB - -96 TiB - -112 TiB - -128 TiB - - - - - - - - - - - - - - - - - - - - - - -0x7fffffffffff · the user half's end -0 -above: 16 EiB not canonical, then the kernel's half - - - -0 MiB - -32 MiB - -64 MiB - -96 MiB - -128 MiB - -160 MiB - -192 MiB - -224 MiB - -256 MiB - - - - - - - - - - - - - - - - - - - -the top 256 MiB · × 500 000 - - - -0 MiB - -1 MiB - -2 MiB - -3 MiB - -4 MiB - - - - - - -r-x ld.so -180 KiB - - - - - -r-- ld.so.cache -260 KiB - - - - - - -r-- libc.so.6 -472 KiB - - -r-x libc.so.6 -1.5 MiB - - -r-- libc.so.6 -144 KiB - - -the libraries, 4 MiB · × 32 - - - -0 MiB - -4 MiB - -8 MiB - -12 MiB - -16 MiB - -20 MiB - - - - - - - -the bottom 20 MiB · × 7 000 000 - -rw- [stack] 132 KiB, rsp in it: a hairline even here - - -B -one long strip of powers of ten, left to right - - - -0 TiB - -32 TiB - -64 TiB - -96 TiB - -128 TiB - - - - - - - - - - - - - - - - - - - - - - -128 TiB - - - -0 MiB - -32 MiB - -64 MiB - -96 MiB - -128 MiB - -× 1 000 000 - - - - - -0 MiB - -1 MiB - -2 MiB - -3 MiB - -4 MiB - - - - - - - - - - - - - - - - -× 32 - - - - - -0 KiB - -32 KiB - -64 KiB - -96 KiB - -128 KiB - -the stack × 30 - - -C -true scale alone, distances written - - - -0 TiB - -16 TiB - -32 TiB - -48 TiB - -64 TiB - -80 TiB - -96 TiB - -112 TiB - -128 TiB - - - - - - - - - - - - - - - - - - - - - - - -the stack, 132 KiB, a hairline at the top - -the libraries, 4 MiB, 127 MiB below it - -the program and its heap, 0.2 MiB, 16 MiB above 0 -127 TiB of nothing between + + +A +each cluster enlarged; the program's segments each with its start, stop and size; every other file once (recommended) + + + + + + +7fffffffffff +0 +128 TiB + + + + + +rsp + +7ffffffff000 +rw- +132 KiB + +7ffffffde000 +[stack] + + + + + +r-x + + +r-- + + + + + + + + + + + + + + + +7ffff7fff000 +260 KiB + +7ffff7fbe000 + +7ffff7fb6000 +r-- +260 KiB + +7ffff7f75000 + +7ffff7e23000 +2.1 MiB + +7ffff7c00000 +ld.so +ld.so.cache +libc.so.6 + + + + + + + + + + + + +1025000 +rw- +132 KiB + +1004000 +rw- +4 KiB + +1003000 +r-- +4 KiB + +1002000 +r-x +4 KiB + +rip + +1001000 +r-- +4 KiB + +1000000 +[heap] + + + +list +If this bar were the Eiffel Tower, all that is mapped would be +7 µm thick: a tenth of a hair, split between its two ends. + + +B +each cluster enlarged; every file once, the program too: its start, stop and size; no pins + + + + + + +7fffffffffff +0 +128 TiB + + + + +7ffffffff000 +rw- +132 KiB + +7ffffffde000 +[stack] + + + + + +r-x + + +r-- + + + + + + + + + + + + + + + +7ffff7fff000 +260 KiB + +7ffff7fbe000 + +7ffff7fb6000 +r-- +260 KiB + +7ffff7f75000 + +7ffff7e23000 +2.1 MiB + +7ffff7c00000 +ld.so +ld.so.cache +libc.so.6 + + + + + + + + + + + + +1025000 +rw- +132 KiB + +1004000 +16 KiB + +1000000 +[heap] +list +If this bar were the Eiffel Tower, all that is mapped would be +7 µm thick: a tenth of a hair, split between its two ends. + + +C +the whole alone; each cluster one label: where it starts, its size + + + + + + +7fffffffffff +0 +128 TiB + +7ffffffde000 +132 KiB +[stack] + +7ffff7c00000 +4 MiB +libc.so.6, ld.so + +1000000 +148 KiB +list, [heap] +Everything mapped is at the two ends of this bar: +128 TiB, and between them nothing. + -- cgit v1.3