Efficient LLVM-based dynamic binary translation

Alexis Engelke, Dominik Okwieka, Martin Schulz

Publikation: Beitrag in Buch/Bericht/KonferenzbandKonferenzbeitragBegutachtung

6 Zitate (Scopus)

Abstract

Emulation of other or newer processor architectures is necessary for a wide variety of use cases, from ensuring compatibility to offering a vehicle for computer architecture research. This problem is usually approached using dynamic binary translation, where machine code is translated, on the fly, to the host architecture during program execution. Existing systems, like QEMU, usually focus on translation performance rather than the overall program execution, and extensions, like HQEMU, are limited by their underlying implementation. Conversely, performance-focused systems are typically used for binary instrumentation. E.g., DynamoRIO reuses original instructions where possible, while Instrew utilizes the LLVM compiler infrastructure, but only supports same-Architecture code generation. In this short paper, we generalize Instrew to support different guest and host architectures by refactoring the lifter and by implementing target-independent optimizations to re-use host hardware features for emulated code. We demonstrate this flexibility by adding support for RISC-V as guest architecture and AArch64 as host architecture. Our performance results on SPEC CPU2017 show significant improvements compared to QEMU, HQEMU as well as the original Instrew.

OriginalspracheEnglisch
TitelVEE 2021 - Proceedings of the 17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments
Redakteure/-innenBen L. Titzer, Harry Xu, Irene Zhang
Herausgeber (Verlag)Association for Computing Machinery, Inc
Seiten165-171
Seitenumfang7
ISBN (elektronisch)9781450383943
DOIs
PublikationsstatusVeröffentlicht - 16 Apr. 2021
Veranstaltung17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2021 - Virtual, Online, USA/Vereinigte Staaten
Dauer: 16 Apr. 202116 Apr. 2021

Publikationsreihe

NameVEE 2021 - Proceedings of the 17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments

Konferenz

Konferenz17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2021
Land/GebietUSA/Vereinigte Staaten
OrtVirtual, Online
Zeitraum16/04/2116/04/21

Fingerprint

Untersuchen Sie die Forschungsthemen von „Efficient LLVM-based dynamic binary translation“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren