Compare a source-built x64 EXE with its statically recompiled execution end to end #210
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#210
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 18:26 UTC · original
Add an end-to-end static recompilation comparison using a source-built x64 EXE. Start at the fixture entry, call an internal function and a named DLL import, and exercise two input-dependent results. Launch the native reference and the build containing the translated entry and caller on Windows. Compare import arguments, output bytes and process exit codes for both inputs, including a control that can distinguish the paths. Register the public fixture in Windows CI.
Coordinate fixture inputs with #165 where useful. That issue independently tests native mapping and process startup. This milestone measures execution of statically translated code. Refs #132.
@R0Y00 on GitHub · 2026-11-21 18:41 UTC · original
Taking the integration for #210. @yummancito, thanks for the CRT-free child-process result in #165. I checked your public fork; the startup fixture is still local. I will keep the ordinary Windows launch and 0x60d as one reference case, and reuse the merged MASM caller and named mix_args provider for the two-input AOT check. If your fixture becomes public during this work, please link it here so we can reuse the shared parts. Your mapped-startup and TLS work stays in #165.
@RonLogic on GitHub · 2026-11-21 18:48 UTC · original
Independent Windows x64 check for the internal-call and named-import sequence in this milestone.
I built a small MASM DLL locally. Its exported function calls an internal
local_mix(x, y)that returnsx + y, then passesxand that sum to the existingcpu_import_provider!mix_argsthrough the import table. Native execution produced these results:(3, 5)(3, 8, 6)6(7, 8)(7, 15, 3)3Running
cpu_call_aot.pyon the same DLL with--bindformix_argsexited with status 1 at the second call, RVA0x102d:main(e8895ad):unexpected additional call. All 6 selected direct-call, import-call, andxmemtests passed.331eb8c):call to a second target. All 4 selected tests passed, including 249 native comparisons for repeated calls to the same import.b796779):mixed import and direct calls. All 5 selected tests passed, including 249 input pairs for two distinct direct callees and the swapped order.The PR heads were tested separately. The mixed-call rejection matches the scope requested for their combined change. This DLL isolates the call sequence for the EXE milestone. I can share the fixture source or rerun it on the combined branch when it is ready.
@Spaghetih on GitHub · 2026-11-21 19:08 UTC · original
Independent run of the merged EXE reference on a Windows 11 client. This complements the Windows 10 19045 run requested above.
Commit
f85723e(currentmain, includes #228, #219 and #223). Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.14.6,pefile2024.8.26,iced-x861.21.0.Both rows match the expected import arguments, output bytes and exit codes.
On the call sequence @RonLogic isolated: on
f85723e,tools/cpu_call_aot.py:64still rejects a function that makes both a direct call and an import call (mixed import and direct calls). If that sequence is in scope for this milestone and nobody already has it on a branch, I can take it. The shared interface is the call loop incpu_call_aot.pyand its--bindcontract. I would reuse the mergedmix_argsprovider and the #223 direct-callee fixture rather than add a third pattern. I will wait for a go-ahead or a pointer to the combined branch before writing code, to avoid a duplicate.AI-assisted (Claude Code). The run above was executed locally on the configuration listed.