2012 · 16 citations · 18 references
ComputingComputer EngineeringComputer ScienceCompilersOperating SystemsTranslation TheoryCode GenerationRuntime SystemsBinary TranslationCode TranslationDynamic Binary TranslationExecution Time AnalysisHybrid Machine TranslationSource Code DiscoveryStatic Binary TranslationWhole-program Optimization
Static binary translation (SBT) systems and dynamic binary translation (DBT) systems have their own merits and disadvantages. SBT can perform whole-program optimizations and do not incur run-time overheads. However, the code discovery and the code location problems caused by indirect branches make SBT systems hard to develop. On the other hand, DBT can perform optimizations based on program's runtime behaviors and can handle indirect branches easily. However, because the translation time accounts for a part of the execution time, DBT systems cannot perform aggressive optimizations. Therefore, quality of the code generated by DBT is not as good as that by SBT. In this paper, we present a hybrid binary translation (HBT) system which combines the merits of both SBT and DBT. It leverages the LLVM infrastructure to translate source binary code, optimize, and generate target binary code. It first translates binary statically. If a run-time exception happens, the HBT system switches to dynamic translation. On the EEMBC benchmark suite, our experimental result shows that the HBT system can run about 4 to 20 times faster than a LLVM-based DBT system.
18
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · ACM SIGPLAN Notices · 2005 · 3.2K citations
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · 2005 · 2.3K citations
Using the GNU Compiler Collection
Richard Stallman · Molecular Immunology · 2010 · 273 citations
Richard L. Sites, Anton Chernoff, Matthew B. Kirk et al. · Communications of the ACM · 1993 · 257 citations · Full text