cpu: compare the same EXE under Windows, pe_map and AOT #246
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/249"
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-21T19:16:25Z.
Refs #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.