Recompile an x64 direct call and verify argument, register and return behavior #25
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!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/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-21 09:43 UTC · original
R0Y00:codex/cpu-direct-call→main· +382 −34 · 10 files · 1 commits · merged 2026-11-21 09:44 UTCFixes #22. The tool resolves the signed E8 displacement from the linked caller, bounds both functions by their PE runtime-function records, and lifts their supported operations to separate C++ functions. MSVC builds a new x64 DLL. The fixture checks the linked direct target in the input and output images and rejects interior or recursive targets.
Windows CTest exercises 249 input pairs against both the full caller and the isolated callee, comparing native and translated results to an independent arithmetic reference. It compares two scalar arguments recorded through the output pointer, guarded writes, the return and physical RBX/RSI using a separate MASM probe. A modified return leaves the trace unchanged and differs on every input. A controlled register clobber is detected by the probe.
Local verification:
ctest --preset dev --no-tests=error -E '_hardware$'completed with 36 passes and one wave64 capability skip. README and experiment notes describe the integer ABI, fixed frame layouts and reproduction commands. Refs #24 for a source-built import-call follow-up.