Research on A Master-Slave Multithreaded Framework and Optimizations of Dynamic Binary Translation

Author
CuiJinXian
Advisor
PangJianMin
School
PLA Information Engineering University
Major
Computer Science and Technology
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2011
Downloads
27
Citations
1

Request the full text

Abstract

Dynamic binary translation which offers a solution for making an executable compiled on a platform to run on another platform automatically not only resolves the problem of code migration but also plays an important role in prospering the national computer industry, and the decompiling technology in it is widely used on detecting the system vulnerabilities. The current singlethreaded dynamic binary translation systems limit the scope of performance improving. Therefore, the multicore processors and the multithreaded program are fully used for getting the high performance.Aiming at the best effect of multithreaded optimization, this thesis carries out in-depth study on the theory of dynamic binary translation and the key issues of multithreaded program, and then shows the framework of MDT (Master-slave multithreaded Dynamic binary Translation) system and the optimizations implemented on it. The main contributions of this thesis are: first of all, based on the performance analysis and experiments results of a singlethreaded dynamic binary translation system, the MDT framework is designed and implemented. The initialization module and the execution module are assigned to the main thread, the translation module and optimization module are completed by the servant thread. Thereafter, for achieving the speculative translation scheme, the T-Tree (Translation Tree) is built by the servant thread which gives the direction of getting the next pc. Besides that, integrated with the merit of multi-level Cache scheme, the LRU scheme and the full flush scheme, a new management of T-Cache is presented which proves out managing the translated blocks efficiently. Finally, considering the huge potential of performance improvement on cycle optimization, MDT extracts the hot TBs (Translation Blocks) and optimizes them on the levels of the intermediate code and the target code respectively. To diminish the code inflation and raise it to a more desirable quality, the peephole optimization plays an important role during the process of generating the target code.The framework and optimizations of MDT are evaluated wholly and partly across SPEC 2006 under the multicore environment. The results compared with the singlethreaded dynamic binary translation system demonstrate that MDT can reduce the total runtime by nearly 50%, translate 85% TBs speculatively and reduce the rate of code inflation by 50%.

Related dissertations

  1. A Master-slave Multi-threaded Dynamic Translator Based on Homogeneous Multi-cored Environments
  2. Research on Dynamic Binary Translation Optimization
    WangRongHua ·Zhejiang University ·2013 ·Doctoral dissertation
  3. Android SDK Research and Design Based on CK-CPU
    LiangYingChao ·Zhejiang University ·2014 ·Master's thesis
  4. Research on Optimization of Dynamic Binary Translation
  5. Research and Implement of Code Cache Management Policy in QEMU Emulator
  6. Research on Dynamic Binary Translation and Optimization Based on QEMU
    LuoYan ·Zhejiang University ·2013 ·Master's thesis
  7. Dynamic Binary Translation Modeling and Parallelization Research
    LiaoYin ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  8. Dynamic translation and optimization of a number of key technologies
    LiJianHui ·Fudan University ·2006 ·Doctoral dissertation
  9. Research on Dynamic Binary Translation Based Co-designed Virtual Machine
  10. Research on the Design and Implementation Techniques of Customizing Application Specific Instruction Set Processors
  11. Study of Profile-based Optimization Algorithms in Dynamic Binary Translation
    ShiHuiHui ·Shanghai Jiaotong University ·2008 ·Master's thesis
  12. Design and Implement of the TCache of CrossBit Binary Translator
    MaShuLan ·Shanghai Jiaotong University ·2008 ·Master's thesis
  13. Design and Implementation of Floating Point Unit in Retargetbale Dynamic Binary Translator
    QinPeng ·Shanghai Jiaotong University ·2008 ·Master's thesis
  14. Two Topics on Dynamic Binary Translation and Optimization
    BaiTongXin ·Institute of Computing Technology ·2004 ·Master's thesis
  15. The Design and Implementation of Dynamic Binary Translation Based Reversible Debugger
  16. Metadata - based dynamic optimization
    Bao ·Fudan University ·2008 ·Master's thesis
  17. Research on Detection Methods of Multi-threaded Program Based on Dynamic Binary Instrumentation Tools2
    XuChao ·Shanghai Jiaotong University ·2010 ·Master's thesis
  18. Branch Analysis and Optimization in Dynamic Binary Translation
    SunTingZuo ·Shanghai Jiaotong University ·2010 ·Master's thesis
  19. The Design and Implementation of Distributed Dynamic Binary Translation Framework for Thin-client
    ZuoChao ·Shanghai Jiaotong University ·2010 ·Master's thesis
  20. Multithreaded Dynamic Binary Trans Lation Optimization Framework Based on Multi-core Platform
    LiXiaoLong ·Shanghai Jiaotong University ·2010 ·Master's thesis