Repository navigation
Add portable object formats and checked numeric/storage IR - #334
Merged
Merged
Conversation
Move the assembler bridge into assembler/asmobj, add explicit COFF target and relocation namespaces, bounded section/symbol writers and checked in-place addends. Expose format selection through assembly CLI and gate native Windows call/data execution with a system compiler fixture. Refs wavefnd#107, wavefnd#225 Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#319, wavefnd#317, wavefnd#25. Check socket-cli before publication and extracted validation; use the Rust/Wave formatting guard and focused Whale issue forms. Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#89, wavefnd#104, wavefnd#269. Preserve mathematical values or trap at checked_int; retain wrapping casts and version AST/text extensions. Validate integer boundary matrices and schema agreement. Signed-off-by: LunaStev <luna@lunastev.org>
…ation Refs wavefnd#264, wavefnd#162. Use integer IEEE significands and exact rational/native oracles; preserve sign-bit negation for runtime and constant expressions. IR tests: 266 passed, 2 ignored; schema agreement: 112 cases. Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#266, wavefnd#267. Single-round integer IEEE conversion, truncating range-checked float-to-int and canonical numeric NaNs. Validate 10,966 independent vectors, all binary16 storage patterns, and 269 IR tests. Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#155, wavefnd#156, wavefnd#157. Preserve source order, target layout, tracked lifetimes and explicit array bounds; bound storage expansion and index field constants. IR tests: 276 passed, 2 ignored; schema agreement: 116 cases. Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#98, wavefnd#115, wavefnd#160. Preserve volatile scalar accesses, verify and roll back pass boundaries, and explicitly invalidate CFG/value/effect caches on changes. Keep the O0 pipeline disabled; exercise return/trap conformance and diagnostic rollback. Signed-off-by: LunaStev <luna@lunastev.org>
Refs wavefnd#108, wavefnd#224. Separate load-command, section, symbol and relocation responsibilities; check independent LLVM/mixed-object links and gate native execution in macOS CI. Finish integration coverage for AST format 5 and typed IR format 8. Signed-off-by: LunaStev <luna@lunastev.org>
LunaStev
force-pushed
the
feat/portable-objects-and-ir
branch
from
October 21, 2026 16:54
924a848 to
46cf24b
Compare
This was referenced Oct 22, 2026
Closed
This was referenced Oct 22, 2026
Closed
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.
This adds explicit AMD64/AArch64 COFF and Mach-O assembler output, checked numeric IR execution, and typed frontend storage. The assembler bridge is now
assembler/asmobj(crateasmobj). Existing ELF output and O0 behavior are retained.The branch contains exactly eight DCO commits, in the approved order:
Validation on the final integrated sources:
payload+4data pointer by executing for exit 42. These checks gate native format support.Boundaries: Rust owns object serialization, CLI/file handling and the typed IR interpreter. The existing decoder and CFG remain implemented in actual Wave; normal Cargo builds do not require Wave/LLVM and retain explicit unavailable behavior without the opt-in archive. Linked reverse execution remains Linux x86_64. Object serialization for another machine is not reverse/native-IR execution support. COFF/Mach-O are initial relocatable subsets with explicit unsupported forms; the static executable linker/reader remain AMD64 ELF. Structs initially have nonrecursive scalar fields and arrays scalar elements; there is no aggregate ABI expansion, decompiler or optimizer pipeline.
Native Windows/macOS format fixtures and the complete PR CI matrix passed.
Closes #107
Closes #225
Closes #319
Closes #317
Closes #25
Closes #89
Closes #104
Closes #269
Closes #264
Closes #162
Closes #266
Closes #267
Closes #155
Closes #156
Closes #157
Closes #98
Closes #115
Closes #160
Closes #108
Closes #224