Skip to main navigation Skip to search Skip to main content

Efficient LLVM-based dynamic binary translation

  • Technical University of Munich

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

16 Scopus citations

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.

Original languageEnglish
Title of host publicationVEE 2021 - Proceedings of the 17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments
EditorsBen L. Titzer, Harry Xu, Irene Zhang
PublisherAssociation for Computing Machinery, Inc
Pages165-171
Number of pages7
ISBN (Electronic)9781450383943
DOIs
StatePublished - 16 Apr 2021
Event17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2021 - Virtual, Online, United States
Duration: 16 Apr 2021 → 16 Apr 2021

Publication series

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

Conference

Conference17th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2021
Country/TerritoryUnited States
CityVirtual, Online
Period16/04/21 → 16/04/21

Keywords

  • Architecture Simulation
  • Dynamic Binary Translation
  • LLVM
  • Optimization
  • RISC-V

Fingerprint

Dive into the research topics of 'Efficient LLVM-based dynamic binary translation'. Together they form a unique fingerprint.

Cite this