mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
41370a64e4
Emit a shared <stem>_decls.h (runtime extern prologue, static-inline unaligned helpers, all func + alias-body forward decls) and distribute function bodies across N ~40k-line <stem>_full_NN.c shards instead of one monolithic <stem>_full.c. Overlapping-alias host bodies become externally linked so shard bucketing has no atomicity constraint. runtime.cmake's GAME_GENERATED_FULL_C is now multi-value (single path still works, so other games are unaffected until they regen + glob). Tomba: SCUS_942.36_full.c 41MB single TU -> 36 shards; compile (-O3) 4m35s -> 51s (-j16, ~5.4x). Generated function bytes verified byte-identical (6245/6245 functions). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>