摘要
动态二进制翻译器qemu使用Tcache对翻译后的优化代码进行存储和管理,好的Tcache管理策略能使得程序的执行速度大大提高。介绍了动态二进制翻译过程中的Tcache的特点,以及二进制翻译系统中一些常用的Tcache替换方法,主要包括最近最少使用方法、全清空和先进先出,针对qemu设计结合先进先出和全清空算法的Tcache管理方法。最后在龙芯2F的实验平台上实现了全清空、先进先出和将前面两者结合的方法,发现最后一种效果最好,性能得到了提升。
The qemu which is a dynamic binary translator stores and manages the translated and optimised codes in Tcache,the program performance in execution speed can be greatly enhanced when good management schemes are used.This paper presents the characteristics of the Tcache in dynamic binary translation processes and several common Tcache substitution algorithms in binary translation systems,mainly including LRU,FIFO and full flush.Aiming at qemu,the Tcache management scheme in combination with FIFO and full flush algorithms is designed.Finally,the schemes of full flush,FIFO and the combination of the previous two methods are implemented on experimental platform of Loongson 2F,and it is found that the last method demonstrates the best effect with improved performance.
出处
《计算机应用与软件》
CSCD
北大核心
2012年第9期98-100,共3页
Computer Applications and Software
基金
"核心电子器件
高端通用芯片及基础软件产品"(核高基)国家重大科技专项课题(2009ZX01028-002-003-005)