模拟是体系结构研究的重要手段。由于模拟的速度非常慢,有研究提出利用动态二进制翻译技术(DBT)提取程序的代表性模拟点,对代表性模拟点进行详细模拟即可获取程序的准确性能参数,从而缩短模拟时间。然而相关研究并未考虑DBT方法对模拟结果准确度的影响。实验发现,对于某些程序,DBT加速方法会给模拟结果带来近20%的误差。为消除误差,系统分析了引起指令踪迹差异的原因,并提出了一系列消除这些差异的方法。实验结果证实,利用该文提出的方法,可以在不影响DBT方法性能的同时,保证其与传统模拟方法具有完全相同的精确度。
Simulation is a very important way to computer architecture research. To reduce simulation time, the dynamic binary translation (DBT) technique has bee proposed to extract representative simulation points of programs. The performance characteristics of programs can then be obtained by simulating only the extracted representative simulation points. However, the accuracy implications of the DBT method have not been studied. For some programs, the DBT method can incur a nearly 20% error in the simulation results. In this paper, the cause of the execution trace deviation is studied carefully and several methods are proposed to overcome the problem. Experimental results show that with the proposed methods, the accuracy of the DBT method is the same as the simulation method.