Library Function Disposing and Code Cache Management in Binary Translation

Author
YangHao
Advisor
FengXiaoBing , WuChengGang
School
Institute of Computing Technology
Major
Computer System Architecture
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2006
Downloads
118
Citations
3

Request the full text

Abstract

Binary translation is an important technique to resolve the problem of code migration. Theresearch on binary translation and the related optimization, have significant meanings in manyfields, such as legacy code migration, hardware design, program performance improvement,network application, and system security, so this research becomes popular in compiler techniquefield.The research background, the related concepts, and some means of binarytranslation areintroduced first. Then two binary translation systems, Digital Bridge and Digital Bridge Version2,which are both developed by us, are introduced. Followed we have a research about twoproblems in the field. At last, conclude the whole paper and view the future work.The thesis mainly comprises two parts:In the first part, issue about disposing the library functions call fast and efficiently in the binarytranslation system is discussed. Different from the other methods about the problem, onealgorithm with classified thingking is presented to dispose the problem, which is based on thedynamic binary translator integrated with static pre-translator. This method makes use of themerit of dynamic translation and static translation, and makes use of the convention of thefunction call on the target processor to reduce the redundant memory access. So the performancehas been improved greatly.In the second part, issue about managing the code cache efficiently in the binary translationtechnology is discussed. By analyzing the familiar Code Cache management schemes, a newmanagement scheme is presented. It integrates the merit of the full flush scheme, FIFO schemeand multi-level cache, and takes the temporal and spatial locality and code replacing overheadinto account. By doing experiments, confirm the parameter in the scheme and compare with theother Code Cache management scheme. It prove out the method in this thesis has goodperformance and efficiently manages the code cache.

Table of contents

Summary 4-5 Abstract 5-8 Chapter binary translation, and dynamic optimization Profile 8-19 1.1 generation of binary translation technology Background 8-9 1.2 binary translation technology Introduction 9-12 1.2.1 in accordance with a classification 10-11 1.2.2 classified according to the translation object 11-12 1.3 Dynamic Optimization Technology Overview 12 1.4 binary translation and dynamic optimization system current situation overview 12-17 the 1.4.1 binary translation technology development historical overview 12-15 1.4.2 Dynamic Optimization System 15-17 1.5 This article discusses the problems and the articles of organization 17-19 second binary translation system framework 19-25 2.1 dynamic binary translation system Digital 19-21 2.2 combining static and dynamic binary translation system Digital Bridge Versi 21-23 2.3 library function processing module the 2.4 Code Cache management module 23 23-25 ?? Chapter binary translation library function processing 25-38 3.1 Introduction 25 3.2 25-26 3.3 Background Information 26-29 < br /> 3.3.1 procedure linkage table and the global offset table works 26-27 3.3.2 X86 and MIPS distinction of passing parameters and return values ??of 27 3.3.3 processing library function call encountered 27-28 3.3.4 Translation interface customization 28-29 3.4 library function processing algorithm design 29-34 3.4.1 JLSCL algorithm outlined 29-30 3.4.2 JLSCL algorithm design 30-32 3.4.3 JLD algorithm some special treatment 32-33 3.4.4 JLSCL, algorithm analysis 33-34 3.5 algorithm and verify 34-36 3.5.1 related 34 3.5.2 test data selection 34-35 3.5.3 Experimental results 35-36 3.6 Conclusions and future 36-38 Chapter classification code Cache Dual granularity management strategy 38-50 4.1 Introduction 38 4.2 Cache management strategy 38-39 4.2.1 replacement policy 38 4.2.2 Empty strategy 38-39 4.2.3 FIFO strategy 39 4.2.4 Other strategies 39 4.3-LRC strategies 39-45 the 4.3.1 code link and chain scission of the local 39-40 4.3.2 LRC strategy code Cache model 40-41 4.3.3 LRC strategy core algorithm 41-43 4.3.4 of the algorithm parameters affecting the 43-44 4.3.5 Algorithm Performance Analysis 44-45 4.4 algorithm and experimental results 45-49 4.4.1 Related 45 the 4.4.2 key parameters determining 45-48 4.4.3 with other strategies the data comparison 48-49 4.5 Conclusions and future work nbsp 49-50 Chapter Summary and Outlook; 50-52 Reference 52-57 Acknowledgements 57-58 of resume 58

Related dissertations

  1. Research on Self-modifying Code Cache Policy in Binary Translation
  2. Condition Code Optimization in Binary Translation System for ARM
    DuBin ·Beijing Jiaotong University ·2014 ·Master's thesis
  3. Research and Implementation of Instruction Optimization Technique Based on QEMU Emulator
  4. Research and Implementation of QEMU-based Hotspot Code Detection and Dynamic Optimization Model
  5. Research and Implement of Code Cache Management Policy in QEMU Emulator
  6. Operating System Kernel Level Binary Translation System Design and Optimization
  7. Research on a Master-Slave Multithreaded Framework and Optimizations of Dynamic Binary Translation
  8. Research on the Key Technologies in Binary Translation of GPU Programs
    YuYong ·PLA Information Engineering University ·2012 ·Master's thesis
  9. Code-Reuse Attack Detection and Defense Based on Dynamic Binary Translation Framework
    LiuChao ·Hunan University ·2012 ·Master's thesis
  10. Binary Code Instrumentation Framework Based Memory Redundance
    SunWei ·Shanghai Jiaotong University ·2013 ·Master's thesis
  11. The Analysis and Research of Distributed Dynamic Binary Translator for Thin Client
    YangYinDong ·Shanghai Jiaotong University ·2012 ·Doctoral dissertation
  12. Research on Technology in Binary Translation for IA-64 Architectural Characteristics Optimized Code
    SuMing ·PLA Information Engineering University ·2006 ·Doctoral dissertation
  13. Research on Function Identification and Recovery Technology in Static Binary Translation Basing on Software Conventions
    QiNing ·PLA Information Engineering University ·2006 ·Doctoral dissertation
  14. Research on Design and Optimization of Binary Translation System
    MaXiangNing ·Institute of Computing Technology ·2004 ·Doctoral dissertation
  15. Research on Dynamic Binary Translation and Optimization
    TangFeng ·Institute of Computing Technology ·2006 ·Doctoral dissertation
  16. Dynamic Optimization and Microprocessor Architecture Support for Dynamic Binary Translation
  17. Research on Dynamic Binary Translation Technology for Microprocessor Design
  18. Research and Implementation on Key Technology for Processing Branch Instructions in Decompilation
  19. Technology of Target C Code Generation and Optimization in IA-64 Binary Translation
    ZhuXiao ·PLA Information Engineering University ·2007 ·Master's thesis
  20. Research and Implementation on Software-Pipelined Eliminating Technology in IA-64 Binary Translation