Publication | Closed Access
LnQ: Building High Performance Dynamic Binary Translators with Existing Compiler Backends
16
Citations
25
References
2011
Year
Unknown Venue
EngineeringCompiler TechnologyComputer ArchitectureExisting Compiler BackendsSoftware EngineeringSoftware AnalysisBinary CodeParallel ComputingCompilersDynamic CompilationCompiler SupportCode GenerationComputer EngineeringDynamic Binary TranslationComputer ScienceOptimizing CompilerProgram AnalysisFormal MethodsParallel ProgrammingIntermediate RepresentationSystem SoftwareVirtual Machine
This paper presents an LLVM+QEMU (LnQ)framework for building high performance and retargetable binary translators with existing compiler modules. Dynamic binary translation is a just-in-time (JIT) compilation from binary code of guest ISA to binary code of host ISA. The quality of translated code is critical to the performance of a dynamic binary translator, which translates code between different IS As, so the translated code is often carefully hand-optimized. As a result, it takes tremendous implementation efforts for software engineers to port an existing dynamic binary translator to anew host ISA. The goal of LnQ framework is to enable the process of building high performance and retarget able dynamic binary translators with existing optimizers and code generation back ends. LnQ framework consists of a translation module and an emulation engine. We design the translation module based on LLVM compiler infrastructure, and use QEMU as our emulation engine. We implement an x86-to-x86 64 dynamic binary translator with our LnQ framework to show that the framework is retarget able, and conduct experiments on SPECCPU2006 benchmarks to show that the resulting binary translator has good performance. The experiment results indicate that the x86-to-x86 64 LnQ translator achieves an average speedup of 1.62X in integer benchmarks, and 3.02X in floating point benchmarks than QEMU.
| Year | Citations | |
|---|---|---|
Page 1
Page 1