Match and link rvl decoder #12

Merged
coah80 merged 1 commits from codex/worker-rvl-dec-20260921 into main 2026-09-21 19:47:26 +00:00
coah80 commented 2026-09-21 19:46:31 +00:00 (Migrated from github.com)

Summary

  • Retain rvl_dec's original local work buffer in the candidate object.
  • Keep the four inline-assembly relocations local to work, preserving the original linked address and DOL bytes.
  • Mark system/rvl_dec.c as Matching so the exact object is linked.

Verification

Before: all four functions were 100.0% code-matched, but the unit was incomplete and unlinked; live fully-linked score was 43.88%.

After: main/src/system/rvl_dec reports 100.0% code match, 100.0% data match, 100.0% code link, 100.0% data link, 4/4 functions matched, and complete_units: 1.

Commands:

  • python3 configure.py --version 43U
  • /home/cole/projects/tests/.venv/bin/ninja -C . build/43U/src/src/system/rvl_dec.o
  • /home/cole/projects/tests/.venv/bin/ninja -C . build/43U/ok
  • build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json
  • python3 tools/decomp_status.py build/43U/report.json --output /tmp/rvl-dec-status-after.json --summary /tmp/rvl-dec-summary-after.txt
  • python3 tools/check_decomp_complete.py --dol build/43U/main.dol build/43U/report.json

The full 43U build passed and the DOL remains 26116613f624061ba99c8d1a299aaa6efa85670d. The repository-wide completion checker still fails on unrelated incomplete units; rvl_dec is not among its remaining failures. The live overall fully-linked score moved to 43.97%.

Note

  • Removes the external _f_bss symbol declaration and changes Rvl_decode_ash and Rvl_decode_asr to compute the address of the static work buffer for their working-memory pointers.
  • Reclassifies system/rvl_dec.c from NonMatching to Matching in the system library object list in configure.py.
  • Risk: if any out-of-tree or linker script still expects _f_bss to be referenced from this object, it may need updating; the in-tree build no longer depends on that symbol here.

Macroscope summarized 4a0a977.

## Summary - Retain `rvl_dec`'s original local `work` buffer in the candidate object. - Keep the four inline-assembly relocations local to `work`, preserving the original linked address and DOL bytes. - Mark `system/rvl_dec.c` as `Matching` so the exact object is linked. ## Verification Before: all four functions were `100.0%` code-matched, but the unit was incomplete and unlinked; live fully-linked score was `43.88%`. After: `main/src/system/rvl_dec` reports `100.0%` code match, `100.0%` data match, `100.0%` code link, `100.0%` data link, `4/4` functions matched, and `complete_units: 1`. Commands: - `python3 configure.py --version 43U` - `/home/cole/projects/tests/.venv/bin/ninja -C . build/43U/src/src/system/rvl_dec.o` - `/home/cole/projects/tests/.venv/bin/ninja -C . build/43U/ok` - `build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json` - `python3 tools/decomp_status.py build/43U/report.json --output /tmp/rvl-dec-status-after.json --summary /tmp/rvl-dec-summary-after.txt` - `python3 tools/check_decomp_complete.py --dol build/43U/main.dol build/43U/report.json` The full 43U build passed and the DOL remains `26116613f624061ba99c8d1a299aaa6efa85670d`. The repository-wide completion checker still fails on unrelated incomplete units; `rvl_dec` is not among its remaining failures. The live overall fully-linked score moved to `43.97%`. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Link `rvl_dec.c` by switching assembly to file-local `work` buffer > - Removes the external `_f_bss` symbol declaration and changes `Rvl_decode_ash` and `Rvl_decode_asr` to compute the address of the static `work` buffer for their working-memory pointers. > - Reclassifies [system/rvl_dec.c](https://github.com/coah80/wii-ipl/pull/12/files#diff-114d1c3e29f38ddd4bf22bcc23288e5721b2bbf570ca69823e25047a17578d93) from NonMatching to Matching in the system library object list in [configure.py](https://github.com/coah80/wii-ipl/pull/12/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c). > - Risk: if any out-of-tree or linker script still expects `_f_bss` to be referenced from this object, it may need updating; the in-tree build no longer depends on that symbol here. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 4a0a977.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.