首页> 外国专利> Method and apparatus for performing a combination of native code and object code during program code conversion

Method and apparatus for performing a combination of native code and object 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是本机的。该方法进一步包括代替诸如库函数NFuncB之类的本机代码部分,执行诸如主题函数SFuncB 173的主题代码部分。 283.这种反向绑定技术用主体代码代替了本机代码的选定部分,特别是本机库功能,以便将控制权保持在翻译器19内。这除其他优点外,还有助于在翻译器19中保持准确的主体状态。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号