Repository navigation
Releases
Releases · Sahilg93/arm64-recompiler
v0.1.0: Plink natively, PuTTY GUI and SSH in hosted mode
First tagged release of a static recompiler that turns real Windows x86-64 PE binaries into native Apple Silicon (ARM64) Mach-O executables via LLVM IR.
What works
- PuTTY Plink 0.83, natively. The original Windows release runs
-Vwith output matching Wine + Rosetta byte-for-byte, at 6.20× the speed (42.31 ms vs. 262.23 ms) and a 68.9% smaller memory footprint. - PuTTY 0.83 GUI. Renders its configuration dialog and opens raw and SSH terminal sessions (hybrid NTRU Prime / Curve25519 key exchange, Ed25519 public-key login, AES-256).
- Plink over SSH. Key exchange, public-key login, a remote command and exit status 0 against OpenSSH. With
wineserveralready running the lifted command takes 293 ms against 452 ms under Wine + Rosetta (1.54×); from a cold start the two are level. - jq 1.8.2. Verified against the upstream macOS build for stdin, file input, Unicode filenames, sorting, regex and error handling.
- ripgrep 14.1.1. A single-threaded recursive search agrees with Wine.
- Runtime DLL loading, and Wine's own
ntdll,kernelbase,ucrtbase,user32,gdi32,comctl32andws2_32lifted as ordinary guest DLLs. - Shared lifted modules. Each lifted DLL is built once as a shared library and reused by every program.
Known limits
This is not a general "run any Windows binary" tool.
- GUI and network programs need hosted mode: a Wine 11.0 install, Wine's unix-side syscall layer and a Wine prefix, with
wineserverunder Rosetta. There is no standalone.appbundle (#3, #4). - AES-NI, SHA extensions, carry-less multiply and AVX are not lifted (#1). PuTTY and Plink are built with
--traceand use their software ciphers. - Some code still runs in a fallback x86 interpreter (#7).
- Hosted programs use 1.6 to 2 times the memory of the original under Wine (#2).
- ripgrep runs only single-threaded, in diagnostic mode (#5).
Getting started
See the README for the quickstart and measurements, and WAR_STORIES.md for the bugs found along the way. This release is source only; there are no prebuilt binaries.
