• DocumentCode
    576999
  • Title

    An LLVM-based hybrid binary translation system

  • Author

    Shen, Bor-Yeh ; You, Jyun-Yan ; Yang, Wuu ; Hsu, Wei-Chung

  • Author_Institution
    Inst. of Comput. Sci. & Eng., Nat. Chiao Tung Univ., Hsinchu, Taiwan
  • fYear
    2012
  • fDate
    20-22 June 2012
  • Firstpage
    229
  • Lastpage
    236
  • Abstract
    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.
  • Keywords
    exception handling; program interpreters; DBT systems; HBT system; LLVM infrastructure; LLVM-based hybrid binary translation system; SBT systems; code discovery; code generation; code location problem; dynamic binary translation; dynamic translation; execution time; run-time exception; run-time overhead; runtime behavior; source binary code; static binary translation; target binary code; translation time; whole-program optimization; Assembly; Binary codes; Generators; Heterojunction bipolar transistors; Optimization; Registers; Switches;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Industrial Embedded Systems (SIES), 2012 7th IEEE International Symposium on
  • Conference_Location
    Karlsruhe
  • Print_ISBN
    978-1-4673-2685-8
  • Electronic_ISBN
    978-1-4673-2683-4
  • Type

    conf

  • DOI
    10.1109/SIES.2012.6356589
  • Filename
    6356589