Arancini

A Hybrid Binary Translator for Weak Memory Model Architectures

Conference Paper (2026)
Author(s)

Sebastian Reimers (Technische Universität München)

Dennis Sprokholt (Technische Universität München)

Martin Fink (Technische Universität München)

Theofilos Augoustis (Technische Universität München)

Simon Kammermeier (Technische Universität München)

Rodrigo C.O. Rocha (Huawei)

Tom Spink (University of St Andrews)

Redha Gouicem (RWTH Aachen University)

Soham Chakraborty (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Pramod Bhatotia (Technische Universität München)

Research Group
Programming Languages
DOI related publication
https://doi.org/10.1145/3779212.3790127 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Research Group
Programming Languages
Pages (from-to)
157-174
Publisher
ACM
ISBN (electronic)
9798400723599
Event
31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2026 (2026-03-22 - 2026-03-26), Pittsburgh, United States
Downloads counter
20
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Binary translation is a powerful approach to support cross-architecture emulation of unmodified binaries in increasingly heterogeneous computing environments. However, binary translation systems face correctness issues, due to the strong-on-weak memory model mismatch (e.g., from x86-64 to Arm/RISC-V) for concurrent programs. Besides, the current landscape of binary translation systems is fundamentally limited in terms of completeness for static systems and performance for dynamic ones.To address these limitations, we propose Arancini, a hybrid binary translator system designed and implemented from the ground up that strives for correct, complete, and efficient emulation for weak memory model architectures. Our system makes three foundational contributions to achieve these design goals: ArancinIR, a unified intermediate representation for static and dynamic binary translators; a formalization of ArancinIR,'s memory model and formally verified mapping schemes from x86-6 to Arm and RISC-V, to ensure strong-on-weak correctness; and Arancini, a complete and performant hybrid binary translator, implementing the verified mapping schemes for correctness.We evaluate Arancini using a multi-threaded benchmark suite with two backends (Arm and RISC-V), and show that Arancini can be up to 5× faster than QEMU - based translators while ensuring correctness and completeness.To our knowledge, Arancini is the first hybrid binary translator whose implementation is guided by formal proofs, to ensure correct execution of strong memory guests on weak memory hosts. It is also the first translator to address mixed-sized accesses for Arm targets.