期刊文献+

基于转移指令特性的动态翻译算法 被引量:2

Dynamic Binary Translation Algorithm Based on Characteristic of Transfer Instructions
下载PDF
导出
摘要 针对传统方法统一转译转移指令导致翻译器效率较低的问题,基于转移目标地址在函数内外的不同特征,提出了直接映射和指令类型转译策略组合的动态翻译方法.对函数内转移指令,直接采用目标架构中对应的分支指令进行映射,通过转移前后指令翻译码的无缝链接,高效转译了条件分支指令,且无需生成源寄存器到内存同步指令;对函数间转移指令,区别对待函数转移和其他转移指令,通过将源程序函数转移指令属性继承给翻译码以提高目标机转移预测器准确率.基于EEMBC(Embedded Microprocessor Benchmark Consortium)测试基准的实验表明,该方法使转移指令翻译码执行指令数平均减少58.9%,转移预测器命中率平均提高80.7%,翻译器整体性能提高12.3%. The traditional dynamic binary translator(DBT) deals with different kinds of transfer instructions in the same way, which leads to great performance loss of DBT. This paper proposed a novel DBT algorithm composed of direct-mapping and transfer-type-inheriting mechanism to efficiently handle transfer translation, based on the distinctive characteristics between inner-function and outer-function transfers. Inner-function transfers were exactly mapped to the same type of transfers in the source machine, which not only reduced the transfers induced by conditional branches, but also avoids memory synchronizations. Outer-function transfers were dealt with differently to pass function call-return attributes from source code to translation code, thus improving the hit rate of the target machine branch predictor. The experiment results from EEMBC(embedded microprocessor benchmark consortium) show that the instructions executed in translation code of transfers has been reduced by 58. 9%, the branch predictor hit rate has been increased by 80.7%, and the overall DBT performance has been improved by 12.3%.
出处 《上海交通大学学报》 EI CAS CSCD 北大核心 2015年第2期173-177,183,共6页 Journal of Shanghai Jiaotong University
基金 中央高校基本科研业务费(2012QNA5004)
关键词 动态翻译 转移指令 直接映射 转移预测器 dynamic binary translation (DBT) transfer instructions direct mapping branch predictor
  • 相关文献

参考文献16

  • 1Altman E R, Kaeli D, Sheller Y. Welcome to the op- portunities of binary translation[J]. Computer, 2000, 33(3) ~ 40-45.
  • 2李剑慧,马湘宁,朱传琪.动态二进制翻译与优化技术研究[J].计算机研究与发展,2007,44(1):161-168. 被引量:25
  • 3Jia N, Yang C, Wang J, et al. SPIRE: Improving dynamic binary translation through SPC-Indexed indi- rect branch redirecting[C] ,//Proe of the 9th ACM SlGPLAN/SlGOPS Int Conf on Virtual Execution En- vironments. New York: ACM, 2013: 1-12.
  • 4Brankovic A, Stavrou K, Gibert E, et al. Perform- ance analysis and predictability of the software layer in dynamic binary translators/optimizers[C]//Proe of the ACM Int Conf on Computing Frontiers. New York: ACM, 2013: 1-10.
  • 5Bellard F. Qemu, a fast and portable dynamic trans- lator[C]//USENIX Annual Technical Conf. Califor- nia: FREENIX Track, 2005: 41-46.
  • 6Hung D Y, Hsu C C, Yew P C, et al. HQemu: A multi-threaded and retargetable dynamic binary trans- lator on multicores[C]//Proc of the lOth lnt Symp on Code Generation and Optimization. New York: ACM, 2012: 104-113.
  • 7WHU Wei-wu, WANG Jian, GAO Xiang, et al. GODSON-3.. A scalable multicore RISC processor with X86 emulation[J]. IEEE MICRO, 2009, 29(2) : 17-29.
  • 8Hsu C C, Liu P, Wang C M, et al. LnQ: Building high performance dynamic binary translators with ex- isting compiler baekends[C] // Int Conf on Parallel Processing. Piscataway, NJ: IEEE, 2011: 226-234.
  • 9Ottoni G, Hartin T, Weaver C, etal. Harmonia: A transparent, efficient, and harmonious dynamic bina- ry translator targeting the Intel architecture[C]// Proc of the 8th ACM Int Conf on Computing Fron- tiers. New York.. ACM, 2011: 1-10.
  • 10CHEN XuHao,SHEN Li,WANG ZhiYing,ZHENG Zhong,CHEN Wei.Binary compatibility for embedded systems using greedy subgraph mapping[J].Science China(Information Sciences),2014,57(7):85-100. 被引量:1

二级参考文献103

  • 1唐锋,武成岗,张兆庆,杨浩.二进制翻译应用级异常处理[J].计算机研究与发展,2006,43(12):2166-2173. 被引量:5
  • 2J C Dehnert,B K Grant,J P Banning,et al.The transmeta code morphing software:Using speculation,recovery,and adaptive retranslation to address real-life challenges[C].The Int'l Symp on Code Generation and Optimization,San Francisco,California,2003
  • 3Anton Chernoff,Mark Herdeg,Ray Hookway,et al.FX!32:A profile-directed binary translator[J].IEEE Trans on Micro,1998,18:56-64
  • 4Cindy Zheng,Carol Thompson.PA-RISC to IA-64:Transparent execution,no recompilation[J].IEEE Computer,2000,33(3):47-52
  • 5Troger,Jens Specification-driven dynamic binary translation[Ph D dissertation][D].Brisbane:Queensland University of Technology,2004
  • 6Cristina Cifuentes,Mike Van Emmerik,et al.Preliminary experiences with the use of the UQBT binary translation framework[C].Workshop on Binary Translation,Technical Committee on Computer Architecture Newsletter,Newport Beach,USA,1999
  • 7C Cifuentes,V Malhotra.Binary translation:Static,dynamic,retargetable?[C].Int'l Conf on Software MaintenanceMonterey,CA,1996
  • 8W Chen,S Lerner,R Chaiken,et al.Mojo:A dynamic optimization system[C].The 3rd Workshop on Feedback-Directed and Dynamic Optimization,Monterey,California,2000
  • 9Kevin Scott,Jack Davidson.Safe virtual execution using software dynamic translation[C].The 18th Annual Computer Security Applications Conference,Las Vegas,Nevada,2002
  • 10M Prasad,T C ChiuehA binary rewriting defense against stack based buffer overflow attacks[C].USENIX'03 Annual Technical Conference,San Antonio,Texas,2003

共引文献24

同被引文献17

引证文献2

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部