Skip to content

Establish executable Windows ARM64 MSVC C ABI interoperability #616

Closed

Description

@LunaStev

Part of #611. Difficulty: very high. Audit baseline: master 3950416e (2026-09-12).

Current evidence

tests/codegen_regressions.rs provides windows_arm64_c_abi_links_with_mingw, and .github/workflows/rust.yml invokes that GNU-oriented cross-link test. MSVC object/IR checks and the executor fixture do not replace bidirectional native C ABI verification.

Scope

Build a native ARM64 MSVC ABI oracle with clang-cl or cl and target-matched SDK libraries. Exercise register/stack boundary transitions, homogeneous floating aggregates, non-homogeneous and odd-sized aggregates, indirect returns, narrow integers, mixed scalar arguments, and supported variadic calls. Add fixes only where an executable counterexample demonstrates the need.

Completion criteria

Both Wave-to-C and C-to-Wave calls return independently checked values in debug/unoptimized and optimized runs on actual ARM64 Windows. Native results distinguish ARM64 from emulated x64. Preserve sources, compiler versions, object/IR evidence and process status on failure. GNU cross-linking remains separate evidence during rollout. Do not mark an emitted object or a linked PE as an executed test.

Dependencies and boundaries

#498; #608 and #609 are existing ARM64 blockers; #613 and #617 provide the link/runtime foundation.

References: Microsoft Windows ARM64 ABI

Activity

  1. added
    enhancement
    help wanted
    needs testing
    multi-os testing
    on Sep 12, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedmulti-os testingneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions