cpu: bind synchronous stack outputs through ordinary imports #895
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!895
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/895/head"
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?
@R0Y00 on GitHub · 2026-11-23 16:18 UTC · original
R0Y00:codex/cpu-stack-output-import→main· +244 −18 · 8 files · 3 commits · merged 2026-11-23 16:59 UTCRefs #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.@R0Y00 on GitHub · 2026-11-23 16:44 UTC · original
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.