首页> 外国专利> Method of executing program code where a portion of the target code calls a native code portion which then calls a second target code portion.

Method of executing program code where a portion of the target code calls a native code portion which then calls a second target code portion.

机译:执行程序代码的方法,其中目标代码的一部分调用本机代码部分,然后本机代码部分调用第二目标代码部分。

摘要

In dynamic binary program code conversion, subject code 17 is translated into target code 21 for execution on a target processor 13. When the subject code is executed, a portion of the code calls a portion of native code such as library function NFuncA 272 to replace subject code portion SFuncA 172. The native function then calls a second portion of the subject code SFuncB 173 instead of native function NFuncB 273. The method then returns from executing the second portion of the subject code to the native code and then returns from executing the native code to the first portion of the subject code. The method may include the steps of determining whether to execute the second subject code portion or a second native code portion and linking the code portion as required. The code portions may be library functions. The step of determining may include using a reverse bind point description which includes an identification of a native function as the second native code portion to be reverse bound and an identification of a subject function to be called as the second subject code portion instead of the native function. The method may include the steps of transforming some of the first function's parameters from a target code representation to a native code representation and invoking the first native library function with the transformed parameters according to a prototype of the first native library function.
机译:在动态二进制程序代码转换中,将主体代码17转换为目标代码21,以便在目标处理器13上执行。当执行主体代码时,部分代码将调用诸如库函数NFuncA 272之类的本机代码的一部分来替换主题代码部分SFuncA172。然后,本机函数调用主题代码SFuncB 173的第二部分,而不是本机函数NFuncB273。然后,该方法从执行主题代码的第二部分返回本机代码,然后从执行本机代码到主题代码的第一部分。该方法可以包括以下步骤:确定是执行第二主题代码部分还是第二本地代码部分,并根据需要链接该代码部分。代码部分可以是库函数。确定步骤可以包括使用反向绑定点描述,该反向绑定点描述包括将本机功能的标识作为要反向绑定的第二本机代码部分,以及将被称为第二主体代码部分的主题功能而不是本机代码的标识。功能。该方法可以包括以下步骤:根据第一本机库函数的原型,将一些第一函数的参数从目标代码表示形式转换为本机代码表示形式,并使用转换后的参数来调用第一本机库函数。

著录项

  • 公开/公告号GB2426840A

    专利类型

  • 公开/公告日2006-12-06

    原文格式PDF

  • 申请/专利权人 TRANSITIVE LIMITED;

    申请/专利号GB20050011414

  • 发明设计人 GERAINT NORTH;JONATHAN JAY ANDREWS;

    申请日2005-06-04

  • 分类号G06F9/455;

  • 国家 GB

  • 入库时间 2022-08-21 20:26:13

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号