cpu: bind synchronous stack outputs through ordinary imports #888
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/895"
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-23T16:18:44Z.
Refs #870 and #317. Built on the fixed-frame proof in #889.
Allow an ordinary import binding to declare a synchronous stack output using
--stack-output ARG WIDTH. Verify the frame-relative LEA, bound and align the output range, and mark only the declared bytes initialized after the call. The provider must fully write that range, without reading its initial contents or retaining the address. Bindings can declare up to four register arguments and up to eight defined return bytes.The source-built fixture compares RBP- and RSP-relative output slots, with providers returning a 32-bit status and void. Six controls verify the refusal boundaries.
Windows x64, MSVC 19.51, Release:
5/5 passed. Documentation links, bidi controls and
git diff --checkpassed.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:44:31Z.
The first Windows runs after retargeting to main stopped while generating blast_lifted.cpp. The archive adapter still called CodecFrame without the new control-flow edges. Commit
431db89passes the already computed edges through. On Windows x64, Debug and Release each passed all six checks: cpu_native_archive_blast plus cpu_aot_stack_output, stack_frames, direct_calls, call_entries and import_calls. Fresh CI is running for the pushed candidate.