发明名称 Optimizing subroutine calls based on architecture level of called subroutine
摘要 A technique is provided for generating stubs. A processing circuit receives a call to a called function. The processing circuit retrieves a called function property of the called function. The processing circuit generates a stub for the called function based on the called function property.
申请公布号 US9063759(B2) 申请公布日期 2015.06.23
申请号 US201213432393 申请日期 2012.03.28
申请人 International Business Machines Corporation 发明人 Gschwind Michael K.
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Kinnaman, Jr. William A.
主权项 1. A computer implemented method for generating stubs, the method comprising: receiving, by a processing circuit, a call to a called function; retrieving, by the processing circuit, a called function property of the called function; generating, by the processing circuit, a stub for the called function based on the called function property; optimizing instructions in the stub based on a near call distance responsive to determining that the called function is reachable with a memory address offset from a branch in the stub, wherein the near call distance does not require full address bits; and optimizing the stub based on a far call distance responsive to determining that the called function requires more address bits than provided in the near call distance, wherein the far call distance requires the full address bits.
地址 Armonk NY US