From 38971edd9b49a802e6e726fb51d162df1bf58b83 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 12 Nov 2026 10:38:01 -0300 Subject: design: a chapter on registers; the introduction as one video From the user. Registers come second, between memory and the stack: sixteen rows each with its chain, rip pinned on the code band and rsp and rbp on the stack's, a register opened into its parts (rdi, edi, di, dil) as one write touches one byte, a call to malloc stepped over with its result in rax, the registers a scene never changes folding three to a row. The four chapters join in one timeline: a 2.1 s seam with the chapter's title said and kept as the clock's label, one recording's clock. Mocks 58 to 62. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/58-regs-pins.svg | 237 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 design/mock/58-regs-pins.svg (limited to 'design/mock/58-regs-pins.svg') diff --git a/design/mock/58-regs-pins.svg b/design/mock/58-regs-pins.svg new file mode 100644 index 0000000..b77b5f1 --- /dev/null +++ b/design/mock/58-regs-pins.svg @@ -0,0 +1,237 @@ + + + + + + +the 128 bytes + + + + + +7fffffffffff +0 +128 TiB + + + + + +7ffffffff000 + +rw- +132 KiB + +7ffffffde000 +[stack] + + +rbp +rsp + + + + + +r-x + + +r-- + + + + + + + + + + + + + + + +7ffff7fff000 +260 KiB + +7ffff7fbe000 + +7ffff7fb6000 +r-- +260 KiB + +7ffff7f75000 + +7ffff7e23000 +2.1 MiB + +7ffff7c00000 +ld-linux… +ld.so.cache +libc.so.6 + + + + + + + + + + + + + + +426000 +rw- +132 KiB + +405000 +rw- +4 KiB + +404000 +r-- +8 KiB + +402000 +r-x +4 KiB + +rip + +401000 +r-- +4 KiB + +400000 +[heap] + + + +list + + + +registers +stack +heap +code +data +rwx + +read-only +rax +405030 + + +0xc +12 +rbx +0 +rcx +405010 + + +7 +rdx +0 +rsi +405040 + + +0 +rdi +9 +rbp + +7fffffffebc0 + + +7fffffffebe0 + + +7fffffffec90 + + +7fffffffecf0 + + +0 +rsp + +7fffffffebb0 + + +405030 + + +0xc +12 +r8 +7ffff7e19ac0 + + +0 +r9 +0x20 +32 +r10 +0x10 +16 +r11 +7ffff7e19ac8 + + +405040 + + +0 +r12 +7fffffffed18 + + +7fffffffeed4 + + +"./list" +r13 +1 +r14 +7ffff7ffd000 + + +7ffff7ffe3c0 + + +0 +r15 +403dc0 + + +401110 +__do_global_dtors_aux+0 + + +rip +40115c +push+12 +cf +pf +af +zf +sf + +IF +df +of +rsp and rbp point into the stack, +rax, rcx and rsi into the heap. + + +moment 6 of 193 +II registers + -- cgit v1.3