| 注册
首页|期刊导航|计算机应用与软件|动态二进制翻译中全寄存器直接映射方法

动态二进制翻译中全寄存器直接映射方法

廖银 孙广中 姜海涛 靳国杰 陈国良

计算机应用与软件2011,Vol.28Issue(11):21-24,48,5.
计算机应用与软件2011,Vol.28Issue(11):21-24,48,5.

动态二进制翻译中全寄存器直接映射方法

ALL REGISTERS DIRECT MAPPING METHOD IN DYNAMIC BINARY TRANSLATION

廖银 1孙广中 1姜海涛 1靳国杰 2陈国良1

作者信息

  • 1. 中国科学技术大学计算机科学与技术学院 安徽合肥230027
  • 2. 中国科学院计算技术研究所 北京100190
  • 折叠

摘要

Abstract

Binary translation is an important means of software migration between different architectures. The differences in architectures and hardware environments are possible to be made up through binary translation system. In the process of translation, it always uses multiple local instructions to simulate a single target instruction. Thus the amount of code translation will increase significantly, which leads to decrease of execution efficiency of the translated program. Register is a key storage component to exchange information between CPU and memory. The way to simulate the registers has a critical influence on the performance of the program. In order to improve the execution efficiency of the platform-specific codes translated, this paper proposes a method that maps directly all the target host registers to the local host registers in dynamic binary translation mechanics. The principle of the context switch and the access scope of registers in binary translation are analysed in detail for providing the guidance to the direct mapping of registers between heterogeneous platforms. Using QEMU emulator, the method maps 8 general-purpose registers on x86 architecture to corresponding registers on MIPS architecture directly. And large quantity translation rules of instructions are simplified based on this mapping. Experiment data show that this method can effectively simplify the instruction translation and decrease the code inflation rate. It reduces 30% - 40% of the running time of the codes of SPEC CINT 2000 test program translated on the Loongson CPU platform.

关键词

动态二进制翻译/寄存器映射/x86体系结构/MIPS体系结构/QEMU

Key words

Dynamic binary translation Register mapping x86 MIPS architecture QEMU

分类

信息技术与安全科学

引用本文复制引用

廖银,孙广中,姜海涛,靳国杰,陈国良..动态二进制翻译中全寄存器直接映射方法[J].计算机应用与软件,2011,28(11):21-24,48,5.

基金项目

2011中国计算机大会论文.国家自然科学基金(61033009) (61033009)

工信部"核心电子器件、高端通用芯片及基础软件产品"科技重大专项(2009ZX 01028-002-003) (2009ZX 01028-002-003)

计算机应用与软件

OA北大核心CSCDCSTPCD

1000-386X

访问量0
|
下载量0
段落导航相关论文