mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
00b1b02a07
Restores entry-scoped overlay analysis (analyze_exact_entries + split_mid_function_targets=false) as the MANDATORY mode for overlay inputs, renamed --overlay-exact -> --overlay: the ingester's contract, set unconditionally by compile_overlays.py for every overlay, never a human toggle. Evidence-scoped discovery compiles only proven seeds + reachable code and keeps branch/jump-table targets as in-parent labels — no whole-byte sweep, so it no longer decodes embedded data tables as code. Effect on the captured Tomba overlay: the data-as-code explosion collapses from thousands of UNSUPPORTED to 122 clean functions with 42 residual unsupported opcodes + 8 bad targets. Those residuals are now a per-function-audit concern (Inc1-B), not a wholesale region failure. Main-EXE codegen is unchanged (Tomba still regenerates 2854 functions; split pre-pass still runs in non-overlay mode). Also adds docs/overlay-recompilation-design.md — the converged design of record (precision-over-recall; compiled!=registered!=callable; write-invalidation over CRC; internal-labels-in-parent; the RAM-write-path audit result; the three implementation increments). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>