From 74c45474f7e3e1b3539eb88484e6749082c6addf Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 17:16:50 -0300 Subject: design: the band is two panels; what the first videos taught An independent review of the first videos, frame by frame, is placed in the catalogue. A lens is a drawing over the program column and its view over the state column (the dump; the backtrace for calls), which leaves the stack six slots as subject: the frame whole, from rsp to past rbp. Operands are whole. A mark covers the bytes that changed. A pin travels and keeps its side. A call's node is a projection of its return address. Fast passes are veiled. Captions have numbers a scene can be checked by, and a scene's first step comes by four seconds. Effects before causes and panels from different moments are forbidden by name. Mock 12 draws fib(4) calling fib(2) from the recording. Co-Authored-By: Claude Fable 5.2 --- design/mock/11-context-lens.svg | 845 +++++++++++++++++++--------------------- 1 file changed, 402 insertions(+), 443 deletions(-) (limited to 'design/mock/11-context-lens.svg') diff --git a/design/mock/11-context-lens.svg b/design/mock/11-context-lens.svg index 0a8fc9d..f5582e3 100644 --- a/design/mock/11-context-lens.svg +++ b/design/mock/11-context-lens.svg @@ -1,358 +1,371 @@ - - - -list.c -lines 18 to 27 of 42 -18 -__attribute__ -( -( -noinline -) -) -static -struct -node -* -reverse -( -struct -node -… -19 -struct -node -* -prev -= -NULL -; - -20 -while -( -head -) -{ - - -21 -struct -node -* -next -= -head -- -> -next -; - -22 -head -- -> -next -= -prev -; -23 -prev -= -head -; -24 + + + +list.c +lines 18 to 27 of 42 +18 +__attribute__ +( +( +noinline +) +) +static +struct +node +* +reverse +( +struct +node +… +19 +struct +node +* +prev += +NULL +; + +20 +while +( +head +) +{ + + +21 +struct +node +* +next += +head +- +> +next +; + +22 head -= -next -; -25 -} -26 -return -prev -; -27 -} - - - -disassembly -reverse -10019 -16 -20 -mov -rbp, rsp -10019 -19 -xor -eax, eax +- +> +next += +prev +; +23 +prev += +head +; +24 +head += +next +; +25 +} +26 +return +prev +; +27 +} + + + +disassembly +reverse 10019 -1b -nop -dword ptr [rax + rax] - +19 +20 +xor +eax, eax 10019 -20 -mov -rcx, rax -rcx -28b410b0 - - -1 - +1b +nop +dword ptr [rax + rax] + 10019 -23 +20 mov -rax, rdi -rax -28b41090 +rcx, rax +rcx +28b410b0 -4 - - - +1 + 10019 -26 -21 +23 mov -rdi, qword ptr [rdi + 8] - -28b41098 - - -28b41070 - - -9 +rax, rdi +rax +28b41090 + + +4 + + + 10019 -2a -22 +26 +21 mov -qword ptr [rax + 8], rcx +rdi, qword ptr [rdi + 8] + +28b41098 + + +28b41070 + + +9 10019 -2e -20 -test -rdi, rdi - +2a +22 +mov +qword ptr [rax + 8], rcx 10019 -31 -jne -1001920 -taken +2e +20 +test +rdi, rdi + 10019 -33 -pop -rbp +31 +jne +1001920 +taken 10019 -34 -26 -ret - - - - - - - - - - - - -registers -stack -heap -code -data -rwx - -read-only -rax +33 +pop +rbp + + + + + + + + + + + + +registers +stack +heap +code +data +rwx + +read-only +rax + +28b41090 + + +4 +rbx +0 +rcx -28b41090 +28b410b0 -4 -rbx +1 +rdx 0 -rcx - -28b410b0 +rsi +28b410c0 -1 -rdx -0 -rsi -28b410c0 - - -0 -rdi - -28b41070 - - -9 -rbp -7ffe970f17b0 - - -7ffe970f17d0 - - -7ffe970f1880 - - -7ffe970f18e0 - - -0 -rsp -7ffe970f17b0 - - -7ffe970f17d0 - - -7ffe970f1880 - - -7ffe970f18e0 - - -0 -r8 -7f2ba3019ac0 - - -0 -r9 -0x20 -32 -r10 -0x10 -16 -r11 -7f2ba3019ac8 - - -28b410c0 - - -0 -r12 -7ffe970f1908 +0 +rdi + +28b41070 + + +9 +rbp +7ffe970f17b0 + + +7ffe970f17d0 + + +7ffe970f1880 + + +7ffe970f18e0 + + +0 +rsp +7ffe970f17b0 + + +7ffe970f17d0 + + +7ffe970f1880 + + +7ffe970f18e0 + + +0 +r8 +7f2ba3019ac0 + + +0 +r9 +0x20 +32 +r10 +0x10 +16 +r11 +7f2ba3019ac8 + + +28b410c0 + + +0 +r12 +7ffe970f1908 + + +7ffe970f2fce + + +"zig-out/targets/list" +r13 +1 +r14 +7f2ba32ac000 -7ffe970f2fce +7f2ba32ad3c0 -"zig-out/targets/list" -r13 -1 -r14 -7f2ba32ac000 - - -7f2ba32ad3c0 - - -0 -r15 -10029c0 - - -1 - - -rip -1001926 -reverse+22 -cf - -PF -af - -zf -sf - -IF -df -of - - - -stack -four words from rsp · the frames they belong to -rsp rbp - +0 +r15 +10029c0 + + +1 + + +rip +1001926 +reverse+22 +cf + +PF +af + +zf +sf + +IF +df +of + + + +stack +six words from rsp · the frames they belong to +rsp rbp + +7ffe970f17 +b0 + + +7ffe970f17d0 + + +7ffe970f1880 + + + + + +7ffe970f17 +b8 + + +10018b0 +main+80 7ffe970f17 -b0 +c0 -7ffe970f17d0 +7f2ba3020de8 -7ffe970f1880 +7ffe970f1918 7ffe970f17 -b8 - - -10018b0 -main+80 +c8 + + +0 7ffe970f17 -c0 +d0 -7f2ba3020de8 +7ffe970f1880 -7ffe970f1918 - - - - - +7ffe970f18e0 + + +0 7ffe970f17 -c8 - - -0 - - - -reverse - - -main - - +d8 + + +7f2ba2e27781 +libc+27781 + + + +reverse + + + +main + + the list + + + +its bytes value next malloc's never read -its bytes -the heap, 28b41030 to 28b410bf +the heap, 28b41050 to 28b410bf 28b410 -30 +50 -19 +10 00 00 00 @@ -361,7 +374,7 @@ 00 00 -10 +30 10 b4 28 @@ -369,15 +382,15 @@ 00 00 00 -25 +16 -28b41010 +28b41030 28b410 -40 +60 @@ -404,9 +417,9 @@ 00 malloc's: a chunk of 32 28b410 -50 +70 -10 +09 00 00 00 @@ -415,7 +428,7 @@ 00 00 -30 +50 10 b4 28 @@ -423,15 +436,15 @@ 00 00 00 -16 +9 -28b41030 +28b41050 28b410 -60 +80 @@ -458,9 +471,9 @@ 00 malloc's: a chunk of 32 28b410 -70 +90 -09 +04 00 00 00 @@ -469,7 +482,8 @@ 00 00 -50 + +70 10 b4 28 @@ -477,15 +491,12 @@ 00 00 00 -9 +4 -28b41050 - - - +28b41070 28b410 -80 +a0 @@ -512,9 +523,9 @@ 00 malloc's: a chunk of 32 28b410 -90 +b0 -04 +01 00 00 00 @@ -523,131 +534,79 @@ 00 00 - -70 -10 -b4 -28 + +00 +00 +00 +00 00 00 00 00 -4 - - -28b41070 -28b410 -a0 - - - - - - - - - - - - - - - - -21 -00 -00 -00 -00 -00 -00 -00 -malloc's: a chunk of 32 -28b410 -b0 - -01 -00 -00 -00 -00 -00 -00 -00 - - -00 -00 -00 -00 -00 -00 -00 -00 -1 -NULL - - - -28b410b0 - -1 - - - - - -rcx -28b41090 - -4 - - - - - - - -rax -28b41070 - -9 - - - - - - -rdi -28b41050 - -16 - - - - -28b41030 - -25 - - - - -28b41010 - -36 - - - - - - - - - +1 +NULL + + + +28b410b0 + +1 + + + + + +rcx +28b41090 + +4 + + + + + + + +rax +28b41070 + +9 + + + + + + +rdi +28b41050 + +16 + + + + +28b41030 + +25 + + + + +28b41010 + +36 + + + + + + + + + - -moment 72 of 95 + +moment 71 of 95 The load read the word at 28b41098: the address of the next node. rdi holds it now, and points at the node whose value is 9. -- cgit v1.3