Liveness analysis: declare don't-care registers and flags at port exits #38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bridges currently recompute every register/flag the original leaves at exit, path by path (field batch 1: ~0.6 line of bridge per line of game code). Brief §7.1 item 4: values the original leaves dead may be declared don't-care, each declaration checked by a liveness analysis of the routine's callers (see lessons.md §1, liveness details: PHP/PLP pairing, A low/high bytes, M bit).
Scope: a tool that computes, per routine, which of A(lo/hi)/X/Y/P flags/D/DB are live after return over all call sites; the shadow comparison skips declared dead values and the fuzzer poisons them. Goal: cut bridge cost and make batches of 15-30 routines practical.
From the 2026-11-02 plan review.