首页> 外国专利> Method for reducing processor cycles used for global offset table address computation in a position independent shared library

Method for reducing processor cycles used for global offset table address computation in a position independent shared library

机译:减少位置无关共享库中用于全局偏移表地址计算的处理器周期的方法

摘要

A process for compiling shared library source code into libraries in which the global offset table location is calculated only when a cross module boundary function call is made. The compiler process allocates a single global offset table pointer and then pre-appends a word to each function entry point containing the offset from that function entry point to the global offset table pointer. A calling module accesses the global offset table pointer and loads a global offset table register based on the offset and function entry point. Pointer logic instructions are inserted before pointer based branches using instruction cycles that would otherwise be lost to a pipeline stall in the preferred architecture.
机译:一种将共享库源代码编译成库的过程,其中仅在进行跨模块边界函数调用时才计算全局偏移表位置。编译器进程分配一个全局偏移表指针,然后将一个单词预附加到每个函数入口点,其中包含从该函数入口点到全局偏移表指针的偏移量。调用模块访问全局偏移表指针,并根据偏移量和函数入口点加载全局偏移表寄存器。使用指令周期在基于指针的分支之前插入指针逻辑指令,否则该指令周期将丢失给首选体系结构中的流水线停顿。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号