Article View: comp.arch
Article #312Re: Binary translation (was: Almost Ready to Repeat the Cycle)
From: John Dallman
Date: Fri, 23 Oct 2026 22:51
Date: Fri, 23 Oct 2026 22:51
52 lines
3385 bytes
3385 bytes
In article <2026Oct23.101307@mips.complang.tuwien.ac.at>, anton@mips.complang.tuwien.ac.at (Anton Ertl) wrote: > Certainly the Windows on ARM efforts have to compete with Windows > computers running on AMD64 hardware implementations. I read about > slowdowns from binary translation by a factor of 2. I recently had reason to do a little benchmarking of AMD64 code running on ARM Windows 11's translator, as compared with the same source built as native code. I was getting about 72% of native code performance in the emulator. > That's an important one. Microsoft tries to get the ISVs of the > most popular software to support ARM A64, and hopes that's enough to > commoditize their complement They've done something slightly more interesting recently. They've invented a new ABI for ARM64, which they call ARM64EC. It uses a calling convention based on their one for AMD64, plus some stack markers. The effect of this is that you can have processes that are a mixture of ARM64EC and AMD64 code. The binary translator recognises the boundaries between DLLs, translates the alien ones and leaves the ARM64EC code alone. Microsoft did this because they'd found that some ISVs are quite willing to produce ARM64 software, but depend on DLLs from other ISVs who aren't interested. Having the willing ISVs use ARM64EC lets them carry on using the third-party AMD64 DLLs. The drawback is that ARM64EC code can't be mixed in a process with "classic" ARM64 code. It would have been nice if they'd invented ARM64EC as part of the ARM Windows port, but that started quite a while ago, and the problem only became obvious once ISVs started actually producing ARM Windows applications. Windows 11 on ARM will run both ARM64EC code and "classic" ARM64 code. It does not run 32-bit code. I suspect they left that out because there wasn't much ARM32 Windows software, and dropping the support for it meant they could make most of the system DLLs into "fat" binaries to support the two different ARM64 ABIs without inflating the OS size too much. > . . . the latter suggests that the Linux non-compatibility of > Windows-on-ARM hardware is intended Maybe. ARM booting arrangements simply aren't as standardised as for PC-derived x86 machines. Until fairly recently, Qualcomm had an agreement with Microsoft which meant that ARM Windows was only supported on Qualcomm hardware and presumably used a Qualcomm boot system. Since Qualcomm were only interested in ARM Windows, they would not be likely to put effort into Linux compatibility. John
Technical Details
Message-ID:
<memo.20261023235108.2644C@jgd.cix.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!news1.firedrake.org!.POSTED.178.238.153.114!not-for-mailReferences:
<2026Oct23.101307@mips.complang.tuwien.ac.at>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!news1.firedrake.org!.POSTED.178.238.153.114!not-for-mail From: jgd@cix.co.uk (John Dallman) Newsgroups: comp.arch Subject: Re: Binary translation (was: Almost Ready to Repeat the Cycle) Date: Fri, 23 Oct 2026 23:51 +0100 (BST) Organization: Firedrake Synthesis Message-ID: <memo.20261023235108.2644C@jgd.cix.co.uk> References: <2026Oct23.101307@mips.complang.tuwien.ac.at> Reply-To: jgd@cix.co.uk Injection-Info: lustrous.firedrake.org; posting-host="178.238.153.114"; logging-data="7578"; mail-complaints-to="usenet@lustrous.firedrake.org" X-Clacks-Overhead-header: GNU Terry Pratchett