summaryrefslogtreecommitdiff
path: root/anim/scenes/musl.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/scenes/musl.zig')
-rw-r--r--anim/scenes/musl.zig10
1 files changed, 6 insertions, 4 deletions
diff --git a/anim/scenes/musl.zig b/anim/scenes/musl.zig
index 3112a27..87c4fe5 100644
--- a/anim/scenes/musl.zig
+++ b/anim/scenes/musl.zig
@@ -51,10 +51,11 @@ fn frame(s: *anim.Frame) void {
const joins = ctx.ties(s);
canim.establish(s, .{ ctx.clock, ctx.registers, ctx.stack, ctx.source, ctx.disasm, log, joins });
+ // What the captions do not name runs: main's prologue and the call's arguments (the syscalls scene walks them).
says.line(s, "The same `hello`, built by Zig against musl, static.");
- cur.walk(s, .line, rec.lineMoment(6, main.enter));
+ cur.hurry(s, .line, rec.lineMoment(6, main.enter), .{});
says.line(s, "`main` calls `open` itself: no PLT stub, no GOT.\nmusl is compiled from its source with the program.");
- cur.walk(s, .moment, call_open);
+ cur.hurry(s, .moment, call_open, .{});
canim.descent.step(cur, s, .moment);
s.wait(t.phrase_rest);
says.line(s, "musl's `open` is open.c: the source follows it.");
@@ -64,8 +65,9 @@ fn frame(s: *anim.Frame) void {
canim.descent.step(cur, s, .moment);
s.wait(t.phrase_rest);
says.line(s, "Which jumps on to `__syscall_cp_c`, in the same file.");
- // __syscall_cp's few rows, and its jump on.
- while (cur.moment(s) <= jump) canim.descent.step(cur, s, .moment);
+ // __syscall_cp's few rows at a run (its frame made and unmade), and its jump on walked.
+ cur.hurry(s, .moment, jump, .{});
+ canim.descent.step(cur, s, .moment);
s.wait(t.phrase_rest);
says.line(s, "The `syscall` is one line of C, in syscall_arch.h:\nrax holds 2, open's number, and rdi the path.");
cur.hurry(s, .moment, crossing - 2, .{});