• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2010, Vol. 32 ›› Issue (9): 95-97.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    下一篇

动态二进制翻译中不对界问题的处理

崔进鲜,庞建民,岳峰,张一弛,张刚   

  1. (信息工程大学信息工程学院,河南 郑州 450002)
  • 收稿日期:2010-02-14 修回日期:2010-06-10 出版日期:2010-09-02 发布日期:2010-09-02
  • 作者简介:崔进鲜(1986),女,河北保定人,硕士,研究方向为软件逆向工程;庞建民,博士,教授,研究方向为软件逆向工程。
  • 基金资助:

    国家863计划资助项目(2009AA01Z434,2006AA01Z408);河南省科技攻关项目(092101210500,092101210501)

A Solution to the Misalignment Problems in Dynamic Binary Translation

CUI Jinxian,PANG Jianmin,YUE Feng,ZHANG Yichi,ZHANG Gang   

  1. (Institute of Information Engineering,Information Engineering University, Zhengzhou 450002,China)
  • Received:2010-02-14 Revised:2010-06-10 Online:2010-09-02 Published:2010-09-02

摘要:

复杂指令集计算机体系结构向精简指令集计算机体系结构的动态二进制翻译过程中经常出现地址不对界的问题。本文以I386到Alpha平台的动态二进制翻译为例,研究了内存映射时的不对界和数据存取时的不对界问题,提出了一种改进的内存映射方法以及在中间表示层处理不对界地址访存问题的方案,有效地解决了此类问题。经实验验证,该方法正确并有较高效率。

关键词: 动态二进制翻译, 地址不对界, 中间表示, 内存映射

Abstract:

The address of a piece of code is often misaligned when running the instructions of complex instruction set computer(CISC) architectures on reduced instruction set computer(RISC) architectures in binary translations. To deal with the misaligned address problems,this paper studies the memory mapping and the load/store instructions in intermediate representation based on the dynamic binary translation from I386 to Alpha,and presents a  scheme which is able to solve these kinds of problems. The results of the tests prove that the  scheme is effective.

Key words: dynamic binary translation;misaligned address;intermediate representation;memory mapping