-
公开(公告)号:US06934943B2
公开(公告)日:2005-08-23
申请号:US10004015
申请日:2001-10-18
申请人: Robert Hundt , Tom Lofgren , Vinodha Ramasamy
发明人: Robert Hundt , Tom Lofgren , Vinodha Ramasamy
CPC分类号: G06F9/44521
摘要: Method and apparatus for optimization of an executable program that calls procedures in a shared library. Code segments that read procedure address information from a linkage table are first identified. Each linkage code segment is associated with a call to a procedure in the shared library, and the address information in the linkage table is associated with the procedures in the shared library. During program execution, the address information is read from the linkage table and substitute code segments are generated for the linkage code segments. Each substitute code segment has direct loads of the address information for calling the associated procedure instead of the original references to the linkage table. Thereafter, the substitute code segments are executed instead of the linkage code segments.
摘要翻译: 用于优化在共享库中调用过程的可执行程序的方法和装置。 首先识别从链接表读取过程地址信息的代码段。 每个链接代码段与对共享库中的过程的调用相关联,链接表中的地址信息与共享库中的过程相关联。 在程序执行期间,从链接表中读取地址信息,并为链接代码段生成替代代码段。 每个替代代码段具有用于调用相关程序的地址信息的直接加载,而不是对链接表的原始引用。 此后,执行替代代码段而不是链接代码段。