Design and Implementation of Co-Designed Dynamic Binary Translation System

Author
XuFan
Advisor
WangZhiYing
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP391.2 Translator
Degree
Master's thesis
Year
2010
Downloads
26
Citations
0

Request the full text

Abstract

Dynamic binary translation technology was initially used to solve the problem of binary code compatible between different processor platforms, after being applied to the virtual machine design, the virtual machine and an important support technology to enhance the performance of the virtual machine. Dynamic binary translation technology in different sizes such as desktop, server, embedded system virtualization play an important role, to be successfully used, including power management, system security, software cache management instruction set translation, and memory management a number of aspects. However, traditional software-based dynamic binary translation system overhead, code cache management and low efficiency inherent defects. In addition, the multi-core era is a new challenge to the existing dynamic binary translation technology. How to take advantage of the dynamic binary translation and optimization technology to give full play to the advantages of multi-core also become a new topic in front of designers. Soft and collaborative dynamic binary translation system can effectively overcome the inherent defects of the software dynamic binary translation technology, it to customized dedicated hardware module to complete the look-up table, cache management, and other common functions, thereby improving overall system performance. Based on extensive depth study of the current dynamic binary translation and optimization technology development status, explore and propose a method of dynamic binary translation system to achieve in heterogeneous multicore platform hardware and software co. The main research results obtained by this paper are: 1) a heterogeneous dual-core hardware and software collaborative dynamic binary translation system model CDBTS. It execution module on the target processor core, while the translation module on the coprocessor module tailored, and set up a dedicated hardware logic of the look-up table, cache management, improve system performance, but also enhance the The flexibility of the system. 2) designed and implemented a page fault based dynamic binary translation of the VMM. Can capture the missing pages in the user program execution interrupt a smaller overhead monitoring execution of the user program, on the the untranslated code of capture and forwarding the translated code links, etc., and can be easily ported to different target platforms, greatly improving the flexibility CDBTS. 3) customized for CDBTS a dual-port RAM-based code cache, greatly reducing the conflict of the two processors the nuclear access code Cache, ensure the consistency of the data. The Code Cache management strategies and the corresponding hardware management module. 4) analysis of the strengths and weaknesses of the existing dynamic binary optimization systems, combined with the characteristics of multi-core platform, multithreaded dynamic optimization framework for multi-core platform and in-depth study of the use of existing technology to achieve the dynamic optimization framework feasibility, and in CDBTS model of the framework. In order to verify the correctness and validity of the above work, this project is designed to achieve a source architecture IA-32, the target architecture is ARM's software and hardware the collaborative dynamic binary translation the system CDBTS-X2A. The actual test results show that the correct, CDBTS-X2A working outperforms traditional software dynamic binary translation system.

Table of contents

Summary 10-12 Abstract 12-14 The first chapter 14-22 1.1 Background 14-18 < br /> 1.1.1 dynamic binary translation technology Introduction 14-15 1.1.2 multicore platforms 15-16 1.1.3 virtualization technology development the 16-17 1.1.4 Opportunities and Challenges the 17-18 1.2 major work and achievements the 18-20 1.2.1 The main research contents 19-20 1.2.2 main outcome the structure and organization of 1.3 thesis 20-22 the second chapter CDBTS system model 22-35 2.1 of DBT system design method 22-24 2.2 CDBTS the basic structure the 24-29 2.2.1 hardware subsystems 25 -27 2.2.2 software subsystem 27-28 2.2.3 key modules 28-29 2.3 CDBTS working, principle 29-32 2.3.1 Dynamic Binary Translation 29-31 2.3.2 Dynamic Optimization 31-32 2.4 CDBTS cost model 32-34 2.5 Summary 34-35 Chapter mechanism based on a page fault VMM 35-47 3.1 Introduction 35-36 3.2 basic structure 36-41 3.2.1 global variable table with the mode switch module 37-38 3.2.2 translation control routine 38-41 3.3 works translate 41-46 3.3.1 user program execution flow 41-42 3.3.2 translation control routine works 42 - 43 3.3.3 Links correctness mechanisms the 3.3.4 user program 43-45 translated to run the sample 45-46 3.4 Summary 46 -47 Chapter efficient code Cache-based dual-port RAM 47-57 4.1 Introduction 47 4.2 code Cache basic structure 47 - 50 4.2.1 code Cache access features nbsp 47-48 4.2.2 code the basic structure and working principle Cache; 48-50 4.3 low overhead code Cache Management Strategy be table on 4.3.1 FBTMT, 50-56 the 50-52 4.3.2 the PLRUT table improved 4.4 Summary 52-56 56-57 Chapter the CDBTS-based multithreaded dynamic optimization the 57-67 5.1 Introduction 57 5.2 Related Research 57-61 5.2.1 DynamoRIO 57-58 5.2.2 Pin 58-59 5.2.3 Jrpm 59-60 5.2.4 issues and challenges 60-61 of 5.3 dynamic optimization framework 61-66 5.3.1 framework of the basic structure and working principle 61 - 63 5.3.2 the feasibility demonstration Experimental The dynamic on 63-65 5.3.3 CDBTS multithreading optimization 65-66 5.4 Summary 66-67 Chapter VI prototype system 67-75 6.1 Introduction 67 6.2 prototype system design and implementation 67-71 <br / > 6.2.1 prototype system structure 68-69 6.2.2 prototype system working principle the 69-71 6.3 Performance Evaluation and Analysis 71-73 6.4 Summary 73-75 Chapter VII Conclusion and Outlook 75-77 7.1 summarizes 75-76 7.2 Job Outlook 76-77 Acknowledgements 77-78 Reference the nbsp academic achievements made by the 78-82 the author in the study period; 82

Related dissertations

  1. Research on Dynamic Binary Translation Based Co-designed Virtual Machine
  2. Study of X Microprocessor Function Verification Method
  3. Research on Hardware Support Profiling of Dynamic Binary Translation
    YangHuiBing ·Shanghai Jiaotong University ·2010 ·Master's thesis
  4. Research on Hardware Software Co-designed Virtual Machine
    LiTingTao ·Shanghai Jiaotong University ·2009 ·Master's thesis
  5. Research on It-Outsourcing Service Provider Evaluation Decision-Making Based on Complex Scientific Management Theory
    ShiLi ·Wuhan University ·2013 ·Doctoral dissertation
  6. The Design of Control System for Building Hot Water Supply
    HouGengChao ·Hunan University ·2013 ·Master's thesis
  7. The design of control system of ARM_Linux based on Distributed
  8. Design and Experimental Research of Greenhouse Environment Computer Control System
  9. Research on Dynamic Binary Translation Optimization
    WangRongHua ·Zhejiang University ·2013 ·Doctoral dissertation
  10. Android SDK Research and Design Based on CK-CPU
    LiangYingChao ·Zhejiang University ·2014 ·Master's thesis
  11. Design and Implementation of32-bit RISC Microprocessor Based on FPGA
    ZhengYongGui ·Hebei University of Technology ·2012 ·Master's thesis
  12. The Research and Design of RISC Microprocessor Soft Core
    ZhuShuangBing ·Hubei University ·2013 ·Master's thesis
  13. Designe of Pressure Management System's Controller Based on MSP430Microprocessor
    SuCanHui ·Hunan University ·2013 ·Master's thesis
  14. Research and Implementation of the Reconfigurable Car Panoramic Vision System
    YuBaoLong ·Beijing Jiaotong University ·2014 ·Master's thesis
  15. The Research and Development of the Control System on Optical Fiber Output Stable Laser Light
    ChenYing ·University of Jinan ·2013 ·Master's thesis
  16. Research and design of automatic control systems in greenhouses
  17. Research on Space Optical CCD Remote Sensing Camera Control System Based on MPSoC
    ZuoJia ·Graduate Schoo,Chinese Academy of Sciences ·2012 ·Doctoral dissertation
  18. Design and Implementation of the Embedded TCP/IP Stack
  19. Research on Optimization of Dynamic Binary Translation
  20. Research and Implement of Code Cache Management Policy in QEMU Emulator