首页> 外国专利> Linker rewriting to eliminate TOC pointer references

Linker rewriting to eliminate TOC pointer references

机译:链接器重写可消除TOC指针引用

摘要

A method and associated computer program product are disclosed for generating an object file for subsequent linking by a linker. The object file comprises a function that references a table of contents (TOC) pointer register. The method comprises generating, in the object file, at least one first annotation that identifies at least one instruction of the function. The at least one instruction has an eliminable reference to the TOC pointer register. The first annotation configures the linker to determine, during the subsequent linking of the object file and based on the at least one first annotation, whether to eliminate the eliminable reference.
机译:公开了一种用于生成目标文件以供链接器随后进行链接的方法和相关的计算机程序产品。目标文件包括引用目录(TOC)指针寄存器的功能。该方法包括在目标文件中生成识别该功能的至少一个指令的至少一个第一注释。至少一条指令具有对TOC指针寄存器的可删除引用。第一注释将链接器配置为在对象文件的后续链接期间并基于至少一个第一注释来确定是否消除可消除的引用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号