首页 | 本学科首页   官方微博 | 高级检索  
     

二进制翻译中解析多目标分支语句的图匹配方法
引用本文:陈龙,武成岗,谢海斌,崔慧敏,张兆庆.二进制翻译中解析多目标分支语句的图匹配方法[J].计算机研究与发展,2008,45(10).
作者姓名:陈龙  武成岗  谢海斌  崔慧敏  张兆庆
作者单位:1. 中国科学院计算机系统结构重点实验室,北京,100190;中国科学院计算技术研究所,北京,100190;中国科学院研究生院,北京,100049
2. 中国科学院计算机系统结构重点实验室,北京,100190;中国科学院计算技术研究所,北京,100190
基金项目:国家自然科学基金项目,国家"八六三"高技术研究发展计划基金项目,国家"九七三"重点基础研究发展规划基金项目
摘    要:二进制翻译技术现已成为实现软件移植的重要手段.在二进制翻译系统中,如何有效地挖掘程序的代码并对其进行高效翻译是影响系统性能的关键,而二进制代码中间接跳转语句的存在,使得静态时难以得到它的跳转目标,影响了代码的发掘率和最终的翻译效果.在通常的应用程序中,间接跳转指令经常用来实现多目标分支语义,分支目标存放在跳转表中.提出了一种解析多目标分支语句及其跳转表的方法,能够挖掘出间接跳转的目标,进而对其进行有效翻译并提高二进制翻译系统的性能.该方法提出使用语义图来对预期语义进行刻画和表达.语义图能够对考察的指令序列进行语义提取,识别出与预期语义相匹配的指令流,还可以应对编译器在不同优化选项下生成的指令,并能有效滤除不相关指令带来的干扰.实验结果表明,对于SPEC CINT2000中的部分测试用例,代码翻译的覆盖率可以提高9.85%~22.13%,相应带来的性能提升可达到8.30%~17.71%,而使用的算法时间复杂度仅为O(1).

关 键 词:二进制翻译  挖掘代码  间接跳转  语义图  图匹配

Using Graph Match Method to Resolve Multi-Way Branch in Binary Translation
Chen Long,Wu Chenggang,Xie Haibin,Cui Huimin,Zhang Zhaoqing.Using Graph Match Method to Resolve Multi-Way Branch in Binary Translation[J].Journal of Computer Research and Development,2008,45(10).
Authors:Chen Long  Wu Chenggang  Xie Haibin  Cui Huimin  Zhang Zhaoqing
Affiliation:Chen Long1,2,3,Wu Chenggang1,Xie Haibin1,Cui Huimin1,, Zhang Zhaoqing1,21(Key Laboratory of Computer System , Architecture,Institute of Computing Technology,Chinese Academy of Sciences,Beijing 100190)2(Institute of Computing Technology,Beijing 100190)3(Graduate University of Chinese Academy of Sciences,Beijing 100049)
Abstract:Binary translation has become an important way for software migration.For binary translation systems,how to exploit binary codes and translate them effectively is an important problem.However,indirect jumps in binary codes don't give the jump target explicitly,which will narrow the translation coverage and negatively affect the translation performance.In regular binaries,indirect jumps are often used for multi-way branches,candidate targets are reserved in a jump table.A technique to resolve these multi-way...
Keywords:binary translation  code exploitation  indirect jump  semantic graph  graph matching  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号