• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (2): 50-55.

• 论文 • 上一篇    下一篇

基于DICache的混合线索解释执行技术

陈 微,王志英,陈顼颢,沈 立,陆洪毅,肖 侬   

  1. (国防科学技术大学计算机学院,湖南 长沙,410073)
  • 收稿日期:2010-02-15 修回日期:2010-05-18 出版日期:2012-02-25 发布日期:2012-02-25

A DICacheBased Hybrid Threaded Interpretation Technique

CHEN Wei,WANG Zhiying,CHEN Xuhao,SHEN Li,LU Hongyi,XIAO Nong   

  1. (School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2010-02-15 Revised:2010-05-18 Online:2012-02-25 Published:2012-02-25

摘要:

由解释执行实现的指令集仿真是解决二进制兼容问题的有效手段。解释执行各步骤的组织方式对解释器性能有着重要影响。集中方式效率较低,而效率较高的线索方式由于译码过程过于复杂而无法用于CISC指令集的解释执行。本文提出了一种基于DICache的混合线索解释执行技术,DICache实现一种高效的硬件动态预译码,将源指令转换为一种中间表示,在解释例程中对DICache快速访问实现对CISC指令集的线索解释执行。本文在一个源为IA32、目标为VLIW的解释器上,采用SPEC INT 2000中的测试程序对基于DICache的混合线索解释执行技术进行评估。结果表明该方法可以显著提高解释器的性能。

关键词: 二进制兼容;指令集仿真;线索解释执行;DICache

Abstract:

Interpretationbased instruction set emulation provides a solution to the binary compatibility problem. The organization of the interpretation process has great impact on the performance of an interpreter. Centralized interpretation is inefficient while the traditional threaded interpretation is not suitable for interpreting the CISC Instruction Set Architecture (ISA) because of the complicated instruction decoding process. We propose a DICachebased hybrid interpretation technique. DICache can dynamically predecode the source instruction and convert them into an intermediate form. The DICache access code is appended at the end of each interpreter routine, which enables the threaded interpretation for CISC ISA. We implement an interpreter which interprets the IA32 instructions on VLIW. We conduct some benchmarks from SPEC INT 2000 to evaluate the performance of the novel threaded interpretation method. It is demonstrated that DICachebased hybrid threaded interpretation can significantly improve the performance of an interpreter.

Key words: binary compatibility;instruction set emulation;threaded interpretation;DICache