以RISC-V为目标的动态二进制翻译代码质量优化方法  

Quality Optimization Method of Dynamic Binary Translation Code Targeting for RISC-V

在线阅读下载全文

作  者:余子濠 陈璐 孙凝晖[1,2] 包云岗 Yu Zihao;Chen Lu;Sun Ninghui;Bao Yungang(State Key Lab of processors(Institute of Computing Technology,Chinese Academy of Sciences),Beijing 100190;University of Chinese Academy of Sciences,Beijing 100049)

机构地区:[1]处理器芯片全国重点实验室(中国科学院计算技术研究所),北京100190 [2]中国科学院大学,北京100049

出  处:《计算机研究与发展》2023年第10期2322-2334,共13页Journal of Computer Research and Development

基  金:中国科学院战略性先导科技专项(C类)(XDC05030100);国家自然科学基金重大项目(62090022);北京市科技计划(Z221100003422003);中国科学院青年创新促进会(2013073)。

摘  要:动态二进制翻译是解决一款指令集面临生态系统壁垒问题的主流技术,通过将二进制程序从源指令集翻译成目标指令集,可以在目标指令集的处理器上运行源指令集的应用程序.动态二进制翻译技术的一大挑战是如何生成高质量的目标指令序列,尤其当源指令集和目标指令集存在差异时.为探究该问题,以RISC-V64指令集为目标指令集,分析了当RISC-V64,RISC-V32,MIPS32,x86分别作为源指令集时,影响动态二进制翻译技术翻译质量的因素.针对这些因素,分别提出相应优化方法,并借助RISC-V B扩展和RISC-V P扩展中的部分指令提升翻译质量.最后,提出一个新的动态二进制翻译程序DBT-FEMU实现优化.在模拟器和FPGA中的评估数据显示,运行SPEC CPU2006的整数基准程序时,优化方法可使目标程序所执行的动态指令数平均减少57%,平均性能达QEMU-i386的4.12倍.Dynamic binary translation is a mainstream technology to solve the problem of an instruction set facing ecological barriers.By translating the binary program of the source instruction set into the target instruction set,the application program of the source instruction set can be run on the processor of the target instruction set.A major challenge of dynamic binary translation technology is how to generate high-quality target instruction sequences,especially when there are differences between the source instruction sets and the target instruction sets.In order to explore this problem,We take RISC-V64 instruction set as the target instruction,and analyze the factors that affect the translation quality of dynamic binary translation technology when RISC-V64,RISC-V32,MIPS32 and x86 are used as source instructions respectively.In view of these factors,We propose corresponding optimization methods,and improve the translation quality with the help of some instructions in RISC-V B extension and P extension.Finally,We propose a new dynamic binary translation program DBT-FEMU and implement the above optimization technique,DBT-FEMU is evaluated in the simulator and FPGA.The evaluation data show that when running the SPEC CPU2006 integer benchmark,the above optimization techniques can reduce the number of dynamic instructions executed by the target program by an average of 57%,and the average performance of the translated target program is 4.12 times that of QEMU-i386.

关 键 词:动态二进制翻译 RISC-V 指令集 翻译质量 优化 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象