Manuscript Offprint

arXiv:2610.05999

No More Translation at Runtime: LLM-Empowered Static Binary Translation

Zhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu, Shuai Wang

Zhibo Liu ∗^{*}

State Key Laboratory of Novel

Software Technology,

Nanjing University

Nanjing, China

zhiboliu@nju.edu.cn

Huaijin Wang

The Hong Kong University of

Science and Technology

Hong Kong, China

hwangdz@cse.ust.hk

Wai Kin Wong

The Hong Kong University of

Science and Technology

Hong Kong, China

wkwongal@cse.ust.hk

Daoyuan Wu ∗^{*}

Lingnan University

Hong Kong, China

daoyuanwu@ln.edu.hk

Abstract

While AArch64 CPUs are becoming strong market contenders, their software ecosystem lags behind the mature x86-64 environment, hindering the adoption of the new architectures and impacting user experience. Binary translation bridges this divide by converting binary code from one architecture (e.g., x86-64) to run on another (e.g., AArch64), allowing legacy software to benefit from modern hardware's performance and energy efficiency advantages.

Current translation methods are typically either dynamic, which adds significant runtime overhead, or static, which struggles with reliability due to the inherent complexities of binary analysis. This paper introduces a new static, assembly-to-assembly translation paradigm that transforms binary code ahead of execution, generating portable, efficient native-like binaries that run on AArch64 devices without runtime frameworks. Benefiting from recent breakthroughs in large language models (LLMs), we provide a practical and automated translation engine that produces high-quality code with minimal human intervention. To ensure correctness, we introduce a crucial verification step, where we split the assembly code into simplified snippets, enabling efficient and scalable semantic verification.

Our evaluation shows that this approach significantly outperforms existing open-source solutions with a large margin,

Shuai Wang †^{\dagger}

The Hong Kong University of

Science and Technology

Hong Kong, China

shuaiw@cse.ust.hk

producing binaries with near-native performance. Furthermore, it shows substantial improvements over the leading industrial translator, ExaGear, illuminating a promising new direction for cross-architecture binary translation research.

CCS Concepts: • Software and its engineering → Translator writing systems and compiler generators; Automatic programming; Software verification; • Security and privacy → Software reverse engineering; • Computer systems organization → Architectures.

Keywords: Binary Translation, Cross-Architecture Migration, Large Language Models, Reverse Engineering

ACM Reference Format:

Zhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu, Shuai Wang. 2026. No More Translation at Runtime: LLM-Empowered Static Binary Translation. In European Conference on Computer Systems (EUROSYS '26), April 27–30, 2026, Edinburgh, Scotland Uk. ACM, New York, NY, USA, 18 pages. https://doi.org/10.1145/3767295.3803600

1 Introduction

The computing hardware landscape is shifting away from the long-standing dominance of x86-64, driven by the rise of alternative Instruction Set Architectures (ISAs) like ARM and RISC-V [43, 93]. AArch64 has already achieved significant success in mobile devices and is now making remarkable strides in the PC market with processors like Apple’s Silicon chips [5, 6]. Their high performance and energy efficiency have spurred major manufacturers to develop and promote AArch64 CPUs. Notable examples include Huawei’s Kunpeng server chips [54] and Qualcomm’s Snapdragon X Elite processor for Windows laptops [80, 89].

∗^{*}Work done while the author was associated with HKUST.

†^{\dagger}Corresponding author.

Despite the advantages of ARM-based chips, their widespread adoption is hindered by a major software hurdle. While the AArch64 software ecosystem is thriving, decades of software development have been optimized for x86-64.

Figure

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

EUROSYS '26, Edinburgh, Scotland Uk

© 2026 Copyright held by the owner/author(s).

ACM ISBN 979-8-4007-2212-7/26/04

https://doi.org/10.1145/3767295.3803600

Zhibo Liu et al.

Legacy applications often lack available source code or complete build environments, making a source-based recompilation non-viable [7].

To bridge this gap, chip manufacturers and researchers have turned to binary translation[8, 17, 80], which converts binary code from one ISA to another, allowing seamless software migration from an old architecture to a new one. Prominent examples include Apple's Rosetta 2 [8] for macOS, Huawei's ExaGear [58] for its Kunpeng-powered Linux systems, and Microsoft's Prism [80] for Windows on ARM.

While existing binary translation solutions have facilitated the rapid growth of the AArch64 ecosystem, they are often limited by their low reliability or high runtime overhead. Specifically, static translators lift assembly code to a higher-level, platform-independent intermediate representation (IR) (e.g., LLVM IR) before recompiling it for a new platform [12, 114]. This process is fundamentally challenged by the undecidable problem of statically recovering high-level semantic information [55], such as symbols and variables, that is discarded during compilation. Differently, dynamic solutions translate code at runtime [15, 41, 58], which not only incurs extra performance overhead, but also restricts the portability of translated software, preventing it from migrating to platforms without the translation framework.

Moreover, state-of-the-art binary translation tools are closed-source and platform or CPU-specific [8, 58, 80], creating barriers for research aiming to enhance modern binary translation techniques. The complexity of modern ISAs makes developing a cross-architecture translator a daunting task, requiring substantial expertise and effort to identify equivalent instructions across ISAs and examine their subtle semantic differences. These challenges have slowed academic research, highlighting the need for an automated solution.

To address these limitations, we present a new paradigm for cross-architecture binary translation. Leveraging recent advances in reverse engineering research and LLMs, we propose a static assembly-to-assembly translation paradigm that converts x86-64 binaries to AArch64 ahead of time, eliminating runtime translation overhead while producing portable binaries that can run natively on AArch64 platforms. Furthermore, given LLMs' success in multilingual translation and various coding tasks [21, 26, 48, 67, 72], we explore their potential to facilitate binary translator development, minimizing the reliance on extensive expert knowledge. Additionally, we parameterize translation results to generate reusable translation rules to expedite future translations.

In summary, this paper makes the following contributions:

• We advocate for increased research in binary translation to support software migration for new architectures like AArch64. To this end, we introduce a novel static assembly-to-assembly translation paradigm that utilizes advanced binary rewriting techniques to produce portable binaries with performance comparable to native counterparts.

• We present an automatic binary translation pipeline that leverages LLMs to construct the translation engine, drastically reducing the reliance on costly expert knowledge and manual effort. Meanwhile, our approach simplifies the translation task for LLMs by splitting code into snippets, allowing for straightforward equivalence checking to ensure correctness and scalability.

• We present an academic binary translation framework with performance that rivals leading industrial tools. Evaluation shows that our research prototype, LLMSBT, significantly outperforms existing open-source solutions and even surpasses a leading industrial dynamic binary translator, ExaGear, in some real-world scenarios. The translated binaries achieve near-native performance while remaining portable. We also analyze the remaining runtime overheads, discuss LLMSBT's limitations, and suggest potential improvements for future research.

References (85)

  • X86-64 instruction usage among c/c++ applications
  • dynamic binary lifting and recompilation
  • An {In-Depth} analysis of disassembly on {Full-Scale} x86/x64 binaries
  • A survey of symbolic execution techniques
  • Binary translation using peephole superoptimizers
  • Atomig: automatically migrating millions lines of code from tso to wmm
  • unassisted and automatic generation of high-coverage tests for complex systems programs
  • ACM Transactions on Intelligent Systems and Technology, 15(3):1–45, 2024
  • Biotite: A high-performance static binary translator using source-level information
  • Semantic program alignment for equivalence checking
  • Learning assumptions for compositional verification
  • The power of noise: Redefining retrieval for rag systems
  • Meta large language model compiler: Foundation models of compiler optimization (opens arXiv in a new tab)
  • An efficient method of computing static single assignment form
  • Efficiently computing static single assignment form and the control dependence graph
  • Hypermambo-x64: Using virtualization to support high-performance transparent binary translation
  • Scalable validation of binary lifters
  • A complete formal semantics of x86-64 user-level instruction set architecture
  • Z3: An efficient smt solver
  • On the static analysis of indirect control transfers in binaries
  • Polynima: Practical hybrid recompilation for multithreaded binaries
  • Mcsema: Static translation of x86 instructions to llvm
  • Retrowrite: Statically instrumenting cots binaries for fuzzing and sanitization
  • Efficient llvm-based dynamic binary translation
  • Instrew: Leveraging llvm for high performance dynamic binary instrumentation
  • Datalog disassembly
  • Exploring coremark a benchmark maximizing simplicity and efficacy
  • Retrieval-Augmented Generation for Large Language Models: A Survey
  • Risotto: A dynamic binary translator for weak memory model architectures
  • When the large language model meets programming—the rise of code intelligence (opens arXiv in a new tab)
  • Chstone: A benchmark program suite for practical c-based high-level synthesis
  • Lifting assembly to intermediate representation: A novel approach leveraging compilers
  • Debin: Predicting debug information in stripped binaries
  • An approach to the problem of detranslation of computer programs
  • Principles, taxonomy, challenges, and open questions
  • More with less-deriving more translation rules with less training data for dbts using parameterization
  • A system-level dynamic binary translator using automatically-learned translation rules
  • Language-parametric compiler validation with application to llvm
  • Towards sound reassembly of modern x86-64 binaries
  • Reassembly is hard: a reflection on challenges and strategies
  • X87 fpu programming
  • Guess & sketch: Language model guided transpilation (opens arXiv in a new tab)
  • Efficient simd implementation for accelerating convolutional neural network
  • Tiaozhuan: A general and efficient indirect branch optimization for binary translation
  • Symbolic optimization with smt solvers
  • On extracting specialized code abilities from large language models: A feasibility study
  • How far we have come: Testing decompilation correctness of c decompilers
  • Sok: Demystifying binary lifters through the lens of downstream applications
  • Alive2: bounded translation validation for llvm
  • Enumerating x86-64 - it's not as easy as counting
  • The convergence of source code and binary vulnerability discovery—a case study
  • How machine learning is solving the binary function similarity problem
  • Binary code is not easy
  • What you trace is what you get: dynamic stack-layout recovery for binary recompilation
  • Xda: Accurate, robust disassembly with transfer learning (opens arXiv in a new tab)
  • Symbolic execution with {SymCC}: Don’t interpret, compile! In 29th USENIX Security Symposium (USENIX Security 20), pages 181–198, 2020
  • Symqemu: Compilation-based symbolic execution for binaries
  • {SymFit}: Making the common (concrete) case fast for {Binary-Code} concolic execution
  • Unicorn: Next generation cpu emulator framework
  • Lasagne: A static binary translator for weak memory model architectures
  • All you ever wanted to know about dynamic taint analysis and forward symbolic execution (but might have been afraid to ask)
  • Offensive techniques in binary analysis
  • Unleashing the power of learning: An enhanced {Learning-Based} approach for dynamic binary translation
  • A retargetable system-level dbt hypervisor
  • Llm4decompile: Decompiling binary code with large language models
  • Angr-the next generation of binary analysis
  • Ramblr: Making reassembly great again
  • Reassembleable disassembling
  • Enhancing cross-isa dbt through automatically learned translation rules
  • A general persistent code caching framework for dynamic binary translation ({{{{DBT}}}}})
  • Coremu: a scalable and portable parallel full-system emulator
  • Do prompt-based models really understand the meaning of their prompts? arXiv preprint arXiv:2109.01247, 2021 (opens arXiv in a new tab)
  • Advances in neural information processing systems, 35:24824–24837, 2022
  • Egalito: Layout-agnostic binary recompilation
  • Decllm: Llm-augmented recompilable decompilation for enabling programmatic use of decompiled code
  • ACM Transactions on Architecture and Code Optimization, 21(2):1–25, 2024
  • Resym: Harnessing llms to recover variable and data structure symbols from stripped binaries
  • Raising binaries to llvm ir with mctoll (wip paper)
  • D-arm: Disassembling arm binaries by lightweight superset instruction interpretation and graph modeling
  • {DeepDi}: Learning a relational graph convolutional network model on instructions for fast and accurate disassembly
  • a survey on hallucination in large language models (opens arXiv in a new tab)
  • A Survey of Large Language Models
  • Plankton: Reconciling binary code and debug information
  • Fidelitygpt: Correcting decompilation distortions with retrieval augmented generation
  • Productivity assessment of neural code completion