From 4907e35bc45d12102d0e09380994814fc2e0a369 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 12 Nov 2026 04:45:57 -0300 Subject: canim: the introduction, from the review The introduction records the plain build (clang -O0, no instrumentation), so reverse's frame is the compiler's own push, mov and sub. The stack chapter says its convention once and keeps four free words over rsp so a push moves the pin and nothing else; reverse's rows stand under main's and are stepped, each touching its word, the call before the push, the aim drawn head first to the row it returns to. The close-up frames the bytes and the stack together with their 128 bytes marked. Nothing is named before it is shown; offsets are written in hex as the operands are; the dump folds into its tag; the map is announced before it is shown. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/src/objects.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'anim/src/objects.zig') diff --git a/anim/src/objects.zig b/anim/src/objects.zig index 6ee2b4c..dd9ea85 100644 --- a/anim/src/objects.zig +++ b/anim/src/objects.zig @@ -38,8 +38,7 @@ pub const Link = struct { from: u64, to: ?u64 }; /// shortcut: 64 objects at most; a bigger structure wants a view of part of it. pub fn reach(scratch: std.mem.Allocator, rec: *const Recording, m: Recording.Moment, root: ?[]const u8) []Object { var found: std.ArrayList(Object) = .empty; - const variables = m.variables(scratch) catch return &.{}; - for (variables) |v| { + for (rec.variables(scratch, m)) |v| { if (root) |name| if (!std.mem.eql(u8, rec.name(v.name), name)) continue; // A local its call has yet to assign points wherever that stretch of stack did before. if (!rec.assigned(v, m.index)) continue; -- cgit v1.3