期刊文献+

面向国产平台的二进制翻译库函数替换优化处理机制

Binary Translation Library Function Replacement Optimization Processing Mechanism for Domestic Platform
下载PDF
导出
摘要 在二进制翻译中,库函数本地化处理是指不直接翻译源文件中的库函数而是使用本地目标机的库函数进行替换,以此提高翻译性能。针对国产平台二进制翻译中库函数处理翻译模式的相关特性,提出一种库函数解析处理机制,借助helper函数实现库函数替换操作。通过修改基本块划分规则,将库函数替换部分翻译的基本块进行合并,构建超级块,减少源程序中基本块划分数量与程序执行跳转次数,在保证翻译正确性基础上有效提高翻译效率。在动态二进制翻译器QEMU上进行的实验结果表明,与未优化的库函数处理翻译方式相比,翻译后程序加速比平均提升9%,有效提高了翻译效率。 In binary translation,library functions localization processings do not directly translate library functions in source files but use library functions of local target machines to improve translation performance.Aiming at the related characteristics of library function processing translation mode in binary translation of domestic platform,a library function analysis processing mechanism is proposed.The library function replacement operation is realized by the helper function.By modifying the basic block partitioning rules,the library function replaces the partially translated basic blocks to merge,constructs the super block,reduces the number of basic block partitions and program execution jumps in the source program,and effectively improves the translation efficiency on the basis of ensuring the translation correctness.Experimental results based on the dynamic binary translator QEMU show that compared with the unoptimized library function processing translation method,the post-translation program acceleration ratio is increased by 9 %,which verifies the effectiveness of the mechanism.
作者 张家豪 单征 岳峰 傅立国 王军 ZHANG Jiahao;SHAN Zheng;YUE Feng;FU Liguo;WANG Jun(State Key Laboratory of Mathematical Engineering and Advanced Computing,Zhengzhou 450001,China)
出处 《计算机工程》 CAS CSCD 北大核心 2019年第5期72-76,83,共6页 Computer Engineering
基金 国家自然科学基金(61472447) 国家高技术研究发展计划(2009AA012201) "核高基"重大专项(2009ZX01036-001-001)
关键词 二进制翻译 库函数解析 基本块合并 QEMU翻译器 国产平台 binary translation library function analysis basic block merging QEMU translator domestic platform
  • 相关文献

参考文献6

二级参考文献42

  • 1马湘宁,武成岗,唐锋,冯晓兵,张兆庆.二进制翻译中的标志位优化技术[J].计算机研究与发展,2005,42(2):329-337. 被引量:9
  • 2罗海勇,朱珍民,郭俊波,王非,崔凤江,张佩珩,郑保健.龙芯-1号CPU的网络计算机硬件系统设计及实现[J].计算机工程,2005,31(14):57-58. 被引量:2
  • 3樊志平,张丽杰,贾小铁.基于国产龙芯GS32I平台的嵌入式Linux环境配置[J].福建电脑,2006,22(3):85-86. 被引量:3
  • 4李剑慧,马湘宁,朱传琪.动态二进制翻译与优化技术研究[J].计算机研究与发展,2007,44(1):161-168. 被引量:24
  • 5E R Altman,D Kaeli,Y Sheffer.Welcome to the opportunities of binary translation[J].IEEE Computer,2000,33(3):40-45
  • 6R J Hookway,M A Herdeg.Digital FX! 32:Combining emulation and binary translation[J].Digital Technical Journal,1977,9(1):3-12
  • 7Mark Probst.Dynamic binary translation[C].UKUUG Linux Developer's Conf,Bristol,2002
  • 8Richard L Sites,Anton Chernoff,Matthew B Kirk,et al.Binary translation[J].Communications of the ACM,1993,36(2):197-218
  • 9Leonid Baraz,Tevi Devor,Orna Etzion.IA-32 execution layer:A two-phase dynamic translator designed to support IA-32 applications on Itanium(r)-based systems[C].In:Proc of the 36th Int'l Symp on Microarchitecture (MICRO-36 2003).Los Alamitos:IEEE Computer Society Press,2003
  • 10D Ung,C Cifuentes.Machine-adaptable dynamic binary translation[C].In:Proc of the ACM SIGPLAN Workshop on Dynamic and Adaptive Compilation and Optimization.New Yrok:ACM Press,2000.30-40

共引文献37

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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