首页> 外国专利> Enabling Symbol Resolution of Private Symbols in Legacy Programs and Optimizing Access to the Private Symbols

Enabling Symbol Resolution of Private Symbols in Legacy Programs and Optimizing Access to the Private Symbols

机译:在旧版程序中启用专用符号的符号解析并优化对专用符号的访问

摘要

A method for generating a binary executable of a program so that private symbols in a module are accessible from another module. In one embodiment, the method compiles a source program to an intermediate representation and scans the representation to find the private symbols in the program's modules. It then wraps a function around each private symbol. When called, the function returns an address of the private symbol, so that the other module can access the symbol from outside the module in which the symbol is found. At run time, a call is made to obtain the address of the function, which is then executed to obtain the address of the private symbol so that the symbol can be accessed. In another embodiment, a Just-In-Time compiler executes the wrapper functions and patches the executable program with the direct address of the private symbol to avoid a call to the wrapper function.
机译:一种用于生成程序的二进制可执行文件,以便可以从另一个模块访问模块中的私有符号的方法。在一个实施例中,该方法将源程序编译为中间表示,并扫描该表示以在程序的模块中找到私有符号。然后,它将功能包装在每个专用符号周围。调用该函数时,该函数返回专用符号的地址,以便另一个模块可以从找到该符号的模块外部访问该符号。在运行时,将进行调用以获取函数的地址,然后执行该调用以获取私有符号的地址,以便可以访问该符号。在另一个实施例中,即时编译器执行包装函数,并用私有符号的直接​​地址修补可执行程序,以避免调用包装函数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号