Partial Cross-Compilation and Mixed Execution for Accelerating Dynamic Binary Translation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Gu, Yuhao, Zheng, Zhongchun, Xiao, Nong, Lu, Yutong, Zhang, Xianwei
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915645056090112
author Gu, Yuhao
Zheng, Zhongchun
Xiao, Nong
Lu, Yutong
Zhang, Xianwei
author_facet Gu, Yuhao
Zheng, Zhongchun
Xiao, Nong
Lu, Yutong
Zhang, Xianwei
contents With the growing diversity of instruction set architectures (ISAs), cross-ISA program execution has become common. Dynamic binary translation (DBT) is the main solution but suffers from poor performance. Cross-compilation avoids emulation costs but is constrained by an "all-or-nothing" model-programs are either fully cross-compiled or entirely emulated. Complete cross-compilation is often unfeasible due to ISA-specific code or missing dependencies, leaving programs with high emulation overhead. We propose a hybrid execution system that combines compilation and emulation, featuring a selective function offloading mechanism. This mechanism establishes cross-environment calling channels, offloading eligible functions to the host for native execution to reduce DBT overhead. Key optimizations address offloading costs, enabling efficient hybrid operation. Built on LLVM and QEMU, the system works automatically for both applications and libraries. Evaluations show it achieves up to 13x speedups over existing DBT, with strong practical value.
format Preprint
id arxiv_https___arxiv_org_abs_2512_00487
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Partial Cross-Compilation and Mixed Execution for Accelerating Dynamic Binary Translation
Gu, Yuhao
Zheng, Zhongchun
Xiao, Nong
Lu, Yutong
Zhang, Xianwei
Hardware Architecture
Programming Languages
With the growing diversity of instruction set architectures (ISAs), cross-ISA program execution has become common. Dynamic binary translation (DBT) is the main solution but suffers from poor performance. Cross-compilation avoids emulation costs but is constrained by an "all-or-nothing" model-programs are either fully cross-compiled or entirely emulated. Complete cross-compilation is often unfeasible due to ISA-specific code or missing dependencies, leaving programs with high emulation overhead. We propose a hybrid execution system that combines compilation and emulation, featuring a selective function offloading mechanism. This mechanism establishes cross-environment calling channels, offloading eligible functions to the host for native execution to reduce DBT overhead. Key optimizations address offloading costs, enabling efficient hybrid operation. Built on LLVM and QEMU, the system works automatically for both applications and libraries. Evaluations show it achieves up to 13x speedups over existing DBT, with strong practical value.
title Partial Cross-Compilation and Mixed Execution for Accelerating Dynamic Binary Translation
topic Hardware Architecture
Programming Languages
url https://arxiv.org/abs/2512.00487