摘要
SIMD指令在大多数现代处理器架构中是必需的拓展部件。使用SIMD指令能同时对一组数据执行相同操作,从而实现空间上的并行性,显著提高处理性能。因此SIMD指令在二进制文件中指令的比例显著提高。但大部分动态二进制翻译器忽视了SIMD指令的翻译,源平台的SIMD指令常被翻译为一系列的标量指令,即要求目标平台拥有对应的SIMD指令支持此类并行计算。文章以申威国产处理器为实现平台,提出基于QEMU系统翻译SIMD指令优化方法,包括两个方面,一是借助修改已在QEMU中实现的helper函数,二是使用新引进的向量中间表示提高翻译系统QEMU对SIMD指令的翻译效率。前端为IA32平台,优化后的QEMU翻译对源平台的文件取得较好的加速效果。
As a necessary extension in most modern processor architectures,SIMD instructions can perform the same operations on a set of data at the same time to achieve spatial parallelism and significantly improve processing performance.As a result,the SIMD instruction has a significantly higher percentage of instructions in the binary file.However,most of the dynamic binary translators ignore the translation of SIMD instructions,such as the more popular QEMU translation system.The source platform SIMD instruction is often translated into a series of scalar directives,even if the target platform has the corresponding SIMD instructions to support the parallel computing.In this paper,domestic processors are used for the realization of SW platform,and we propose a SIMD instruction optimization method based on QEMU system translation.It consists of two aspects:first,the helper function which has been implemented in QEMU is modified;second,the newly introduced vector intermediate representation is used to improve the efficiency of SIMD instruction translation of QEMU.The front-end is IA32 platform,and the optimized QEMU has better speedup effect on the source files.
作者
石强
赵荣彩
高亚虎
王军
SHI Qiang;ZHAO Rongcai;GAO Yahu;WANG Jun(Information Engineering University,Zhengzhou 450001,China)
出处
《信息工程大学学报》
2019年第3期308-312,共5页
Journal of Information Engineering University
基金
国家自然科学基金资助项目(61472447)
关键词
二进制翻译
SIMD指令
中间表示
优化
binary translation
SIMD instruction
intermediate representation
optimization
作者简介
石强(1990-),男,硕士生,主要研究方向为二计制翻译。