cpu: compare the same EXE under Windows, pe_map and AOT #249
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!249
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/249/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 19:16 UTC · original
R0Y00:codex/exe-mapped-comparison→main· +75 −0 · 3 files · 2 commits · merged 2026-11-21 19:23 UTCRefs #165, #228. Uses pe_map_run from merged #238 (
23d954d5).Runs the same source-built cpu_exe_original.exe as a Windows process and through pe_map, then compares both with its AOT build. The mapped child inherits the same pipes and propagates the guest return value. Removing host bindings locates the first missing import before entry. All generated artifacts stay under out/.
Local Windows x64 verification used pe_map.cpp at #238
e238a653built by MSVC and the #228 targets built with cmake --build --preset dev --target cpu_exe_original_lifted. From the repo root:With no bindings mapping stopped at cpu_exe_io.dll!emit_trace. Providing I/O alone stopped at cpu_import_provider.dll!mix_args. Binding both DLLs produced identical observations on all three paths. Inputs 00/01 produced output bytes 1103000000000000 / 3500000000000000 and exit codes 0x60d / 0x57 respectively. The two integer arguments received by the provider matched byte for byte in both runs.
Integrated CTest:
ctest --preset dev --no-tests=error -R '^cpu_native_exe_chain$' -V.AI-assisted.
Final Windows verification at
747b58b86don the integrated tree: cpu_native_exe_chain, cpu_native_exe_start and cpu_aot_exe_entry passed 3/3 with ctest --preset dev --no-tests=error -R '^(cpu_native_exe_chain|cpu_native_exe_start|cpu_aot_exe_entry)$' -V.