首页> 外国专利> Method and apparatus for combined execution of native code and target code during program code conversion

Method and apparatus for combined execution of native code and target code during program code conversion

机译:在程序代码转换期间组合执行本机代码和目标代码的方法和装置

摘要

In program code conversion, particularly dynamic binary translation, subject code 17 is translated into target code 21 through a translator 19 for execution on a target processor 13. Selected portions of subject code, such as library functions SFuncA 172, are replaced by instead executing a portion of native code such as a native function NFuncA 282. The native function is native to the target processor 13. The method further includes executing a subject code portion such as a subject function SFuncB 173 in place of a native code portion such library function NFuncB 283. This reverse binding technique substitutes subject code for selected portions of the native code, particularly native library functions in order to keep control within the translator 19. This helps to maintain an accurate subject state in the translator 19, amongst other advantages.
机译:在程序代码转换中,特别是在动态二进制翻译中,主题代码 17 通过翻译器 19 被翻译为目标代码 21 以在目标处理器上执行 13。 主题代码的选定部分(例如库函数SFuncA 172)被替换为执行部分本机代码(例如本机函数NFuncA 282)。 本机功能是目标处理器 13的本机功能。 该方法还包括执行主题代码部分(例如主题函数SFuncB 173 )来代替本机代码部分(例如库函数NFuncB 283)。 这种反向绑定技术用主体代码代替了本机代码的选定部分,尤其是本机库函数,以便将控制权保持在翻译器 19中。 这有助于在翻译器 19 中保持准确的主题状态,还有其他优点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号