4 ms·
Two use-cases jump to mind: * Allows incremental porting of large codebases to ARM. (It's not always feasible to port everything at once-- I have a few project
by adamjs 2y ago
Two use-cases jump to mind:
* Allows incremental porting of large codebases to ARM. (It's not always feasible to port everything at once-- I have a few projects with lots of hand-optimized SSE code, for example.)
* Allows usage of third-party x64 DLLs in ARM apps without recompilation. (Source isn't always available or might be too much of a headache to port on your own.)
- callalex 2y agoAt that point why trust the emulator over the port? Either you have sufficient tests for your workload or you don’t, anything else is voodoo/tarot/tea leaves/SWAG.
- frozenport 2y agoYeah but you need to port the SIMD before shipping anyways? So if you're doing incremental stuff might as well stub out the calls with "not implemented", and start filling them in.
- creshal 2y agoThe SIMD part will be emulated as normal, as far as I understand. So you can ship a first version with all-emulated code, and then incrementally port hotspots to native code, while letting the emulator handle the non-critical parts. At least in theory, we'll see how it actually pans out in practice.
- vsl 2y ago3. Improve x64 emulation performance for everybody. Windows 11 on ARM ships system DLLs compiled as Arm64EC - makes the x64 binaries run native ARM code at least within system libraries.
- amelius 2y ago> Allows incremental porting of large codebases to ARM. (It's not always feasible to port everything at once-- I have a few projects with lots of hand-optimized SSE code, for example.) Wouldn't it make more sense to have a translator that translates the assembly, instead of an emulator that runs the machine code?
- ack_complete 2y agoIt's not worth using ARM64EC for just for incremental porting -- it's an unusual mode with even less build/project support than Windows ARM64 and there are EC-specific issues like missing x64 intrinsic emulations and slower indirect calls. I wouldn't recommend it except for the second case with external x64 DLLs.