针对控制转移开销是影响二进制翻译和优化系统性能的主要因素,进行了提高二进制翻译优化系统性能的研究,提出并实现了硬件设计开销较小的基于硬件内容可寻址存储器(CAM)机制的软硬件协同设计方法。通过实验充分分析了CAM大小、软件替换算法对CAM命中率的影响,并根据分析提出了一种新颖的、软硬件结合的降低CAM访问缺失率的方法。该方法相对于传统的软件和硬件优化方法,硬件实现及验证复杂度低且优化效果明显。实验结果表明该方法使得二进制翻译系统整体性能提高了13.44%。该方法已实际应用于龙芯x86二进制翻译系统中。
In view of the fact that the cost of control transferring is of great influence on the performance of binary transla- tion and optimization systems, the study was conducted and a novel hardware software co-design approach based on the content-addressable memory (CAM) was proposed and implemented to reduce the overhead of control transfer- ring. The CAM based method was designed to optimize the indirect branch. The influences of the CAM size and the software replacement algorithm on the CAM' s impact rate were thoroughly analyzed by experiment. Based on that, a novel soft-hard combination method for reducing CAM' s access absence rate was proposed. The proposed ap- proach can reduce the design and verification costs. Besides, it achieves good performance. The experimental re- suits show that the system performance can be improved by 13.44% with it. The approach is applied to the God- son-3 binary translation system.