Porting Existing Apps#
There are a number of considerations when porting Windows applications from x86 to ARM:
The instruction set differs. In particular, assembly- or compiler-intrinsics-based SIMD code needs to use the appropriate ARM extensions instead (See CPU Instruction Extensions).
The calling convention differs. This is especially relevant to dynamic code generation (JIT) and ARM64EC-x86_64 interoperability via emulation.
The memory ordering differs. Memory accesses between threads within the same process are weakly ordered on ARM, while x86_64 implements total store order. Correctly written multi-threaded programs behave the same on both architectures. But faulty code can result in unexpected behavior when porting to ARM.
Table of Contents:
- Windows on ARM on RTX Spark
- The Differences Between ARM64EC, ARM64, and ARM64X
- Porting from x86/x64 to ARM64EC or Pure Native ARM64
- CPU-Specific Details
- CPU Instruction Extensions
- Memory Ordering and Other Porting Issues
- Setup and Build Systems
- Compiler Flags Guidance for RTX Spark
- Vulkan and OpenGL
- NVAPI