Improve card icon-loader scalar allocation with ABI evidence #1117
Reference in New Issue
Block a user
Delete Branch "agent/bittle/card-loader-scalar-allocation"
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?
Scope and result
43U only. Reorder three existing uninitialized scalar declarations in loadCardFileIcons to iconAddressOffset, iconAddressBase, result. Types, assignments, scope, stack records, helper calls and all other source bytes stay fixed.
Independent verification
Parent independently rebuilt full default43U/ok, rebased and rebuilt on246c3f8056430e98f8c10e3edc3b0b717721e917. All1027 current-main objects/reports checked: only owned object/unit changes; no function/exact/code/data/link regression. Current candidate equals immutable snapshot002. Tested treec0f57bae453fc6d806521441aba2d0c51de2d474.
Independently verified allsix source/object hashes and exact permutations, and regenerated allsix full official reports. Three orders improve, three are baseline-identical; first lexicographic winner retained. Historical overlap is unknown, no novelty claim.
Actual seven-word r22/r23 role mapping accounts for every read/definition, CARDRead/memcpy arguments, range comparisons and comment-phase redefinition. Parent reran508-node CFG/dominator checks and21,400 bounded instruction-slice executions. Actual original-DOL save/restore helpers preserve both registers at unchanged SP+0x38/SP+0x3C slots; all13 calls and branch destinations unchanged. Other ELF sections/headers/relocations are byte-identical. This is local transformation/ABI evidence and bounded slices, not full CARD or Wii execution; existing negative-shift/reserved-format limitations are unchanged.
Pool43/43 identical. Literal audit45arguments across29functions, no candidates/errors; unequal-sized loader explicitly skipped. All27 exact functions independently retain zero ctxdiff. DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d. Clean worktree/diff gates pass. Detailed evidence and limits committed; original executable artifacts stay local. No merge performed or requested.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.