cpu: translate a multi-record archive reader from standard startup #453
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/459"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T04:55:54Z.
Refs #317. Extends the existing EXE three-way milestone in #455 with a stock toolchain startup and a real decompressor. No upstream PR dependency.
Build the Zig 0.13.0 single-threaded Windows console program from source and translate its linked entry and record loop. Recognize bound linker import thunks, terminate the CFG at a declared noreturn import, and propagate the defined low register width through wide moves. Unknown imports remain rejected. A widened exit-status consumer must fail translation.
The same native provider calls blast 1.3 (unmodified upstream source from zlib v1.3.1, notices retained) on each runner. Two distinct records give 26 output bytes and exit 0. Truncating the second stream yields a callback delivering one tentative byte which must never be published. Expect 13 bytes, exit 2, one completed record, both allocations freed. The test checks each callback sequence independently of the native executable.
Windows x64, MSVC 19.51: after building archive_reader_lifted and pe_map, both commands passed (1/1 each):