feat: multi-module WAST extraction + RAM auto-scaling (227/257 spec files)#58
Merged
feat: multi-module WAST extraction + RAM auto-scaling (227/257 spec files)#58
Conversation
Multi-module WAST extraction: - extract_all_modules_from_wast() parses ALL modules from WAST files - compile_all_exports() merges exported functions across modules - Unlocks 33 more spec files (194 → 227 of 257 now compile) RAM auto-scaling: - Auto-scales RAM to fit linear memory + 8KB stack - max(128KB, round_up_64KB(linear_memory + 8KB)) - Fixes load1.wast, imports0.wast, imports3.wast (128KB memory limit) Fixed spec test runner script: - Corrected TESTSUITE_DIR path (tests/spec/ → tests/spec-testsuite/) - Fixed unbound variable error in --quick mode Implements: FR-002 Trace: skip Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
227 of 257 spec files now compile to ARM ELF (up from 194). The remaining 30 are: 9 validation-only (no module), 4 parse failures (wast crate limits), ~17 with missing features (SIMD, GC, memory64, etc.)
Test plan
cargo test --workspace— 802 tests, 0 failurescargo clippy— cleancargo fmt --check— clean🤖 Generated with Claude Code