mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 12:08:38 +00:00
recomp/vlocals.py rewrites each emitted function: c->v forms become the RT_VLOCALS accessors of runtime/simd.h, the K registers the function names most get bits in VMASK, they are loaded at entry, stored where the dirty mask may hold them before calls and exits, and reloaded after calls; --v-trust skips the reload of V8-V15. A function with a form the rewrite does not know keeps every register in the Cpu. K = 0, the default, emits the same C as before. The manifest counts the rewritten functions and syncs. tests/diff/func.py takes --v-locals, --v-trust and --work (one work directory per concurrent run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>