首页> 外国专利> Method and apparatus for performing interpreter optimizations during program code conversion

Method and apparatus for performing interpreter optimizations during program code conversion

机译:在程序代码转换期间执行解释器优化的方法和装置

摘要

A translator apparatus is provided with both program code interpreting and translating functionality, where subject program code is interpreted rather than being translated in those situations where interpretation of the subject program code is determined to be more beneficial. The translator applies an interpreting algorithm to determine whether a basic block of subject program code should be interpreted or translated. A particular subject of instructions supported by the interpreter functionality is initially selected from an entire instruction set for the subject program code. A basic block will be interpreted 1) if all of the instructions within a basic block are determined to be within the subset of instructions supported by the interpreter functionality, and 2) if an execution count of the basic block is below a translation threshold. If either of these two conditions are not satisfied, then the basic block is translated by the translator
机译:为翻译器设备提供程序代码解释和翻译功能,其中在确定对主题程序代码的解释被确定为更有利的情况下,对主题程序代码进行解释而不是对其进行翻译。翻译器应用解释算法来确定是否应解释或翻译主题程序代码的基本块。首先从主题程序代码的整个指令集中选择解释器功能支持的特定指令主题。将对基本块进行解释:1)如果确定基本块内的所有指令都在解释器功能支持的指令子集中,并且2)如果基本块的执行计数低于转换阈值。如果不满足这两个条件中的任何一个,则基本块由翻译器翻译

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号