diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-12 11:32:59 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:19:32 -0300 |
| commit | eab50d1c040774351f332a1568fa332c377860bd (patch) | |
| tree | 0e727f9bf323e49aa6a2f55bb4fabd166aa9a492 /anim/src/objects.zig | |
| parent | 38971edd9b49a802e6e726fb51d162df1bf58b83 (diff) | |
| download | computeranim-eab50d1c040774351f332a1568fa332c377860bd.tar.gz computeranim-eab50d1c040774351f332a1568fa332c377860bd.zip | |
canim: the introduction as one video, with a chapter on registers
From the user. One scene, intro, in four chapters: memory, registers,
the stack, code and meaning (210 s). The registers chapter builds the
panel before the stack needs it: sixteen rows with their chains, rip
pinned on the code band and rsp and rbp on the stack's, rdi opened into
its parts as mov edi changes one byte, a call to malloc stepped over
with its result in rax, the registers a scene never changes folded. The
chapters join at seams that say their title and keep it as the clock's
label; one recording (from push(9), no agent, the heap from --heap) and
one clock.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/objects.zig')
| -rw-r--r-- | anim/src/objects.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/anim/src/objects.zig b/anim/src/objects.zig index dd9ea85..ec40481 100644 --- a/anim/src/objects.zig +++ b/anim/src/objects.zig @@ -67,7 +67,7 @@ fn follow(scratch: std.mem.Allocator, rec: *const Recording, m: Recording.Moment if (std.mem.startsWith(u8, name, "struct ") or std.mem.startsWith(u8, name, "union ")) o.name = name; return; }; - const live = (m.allocation(addr) catch null) != null; + const live = rec.allocated(m, addr); found.append(scratch, .{ .addr = addr, .type = t, .slot = slotOf(rec, addr, m), .freed = !live and wasAllocated(rec, addr, m.index), .name = name }) catch {}; } |
