摘要
研究了虚拟指令翻译技术,设计了一种基于规则推理的虚拟指令翻译器,实现目标指令到虚拟指令的翻译。该翻译器以指令解码器的解码结果为输入,匹配指令翻译规则,充分利用了目标指令的语义信息。同时,翻译规则与控制逻辑的分离使得添加新指令集及修改翻译策略相对容易。给出了关键问题的解决方法,测试结果表明,该翻译器能正确翻译多种指令集,具有较高的实用价值。
In-depth research on virtual instruction translation techniques leads to a virtual instruction translator based on rule-based reasoning, which can convert target instructions to virtual instructions. Taking the results of instruction decoder as the input, the translator matches the instruction translation rules and makes full use of target instructions' semantic information. Since translation rules are separated from the control logic, new target instructions can be easily added and translation policies can be eonveniently modified. Solutions to key problems are presented, and experiments show that this translator can deal with diverse instruction sets, whieh means significant in application.
出处
《信息工程大学学报》
2012年第3期352-357,369,共7页
Journal of Information Engineering University
基金
国家863计划资助项目(2009AA01Z434)
关键词
规则推理
虚拟指令
翻译器
指令解码器
rule-based reasoning
virtual instruction
translator
instruction decoder