- 专利标题: Optimized entry points and local function call tailoring for function pointers
-
申请号: US15332713申请日: 2016-10-24
-
公开(公告)号: US10534593B2公开(公告)日: 2020-01-14
- 发明人: Michael Karl Gschwind , Ulrich Weigand
- 申请人: International Business Machines Corporation
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Lieberman & Brandsdorfer, LLC
- 主分类号: G06F8/41
- IPC分类号: G06F8/41
摘要:
Embodiments relate to optimizing an indirect call function. More specifically, an indirect call function configuration comprises a first application module having a target function of the indirect function call, a second application module with a symbolic reference to the target function of the indirect function call, and a third application module to originate an indirect function call. A compiler is provided to identify potential target functions and indicate the potential target functions in the program code. Additionally, the compiler determines and indicates in the program code that the function pointer value resulting from a non-call reference of a function symbol is solely used to perform indirect calls in the same module. A linker can read the indication the compiler made in the program code and optimize the indirect call function.
公开/授权文献
信息查询