发明名称 Table of contents pointer value save and restore placeholder positioning
摘要 Embodiments describe a computer implemented method of compiling application source code into application object code. A compiler generates application object code having a plurality of table of contents TOC placeholder locations for a potential TOC pointer value command within a calling function. A first function call site of the calling function is corresponded to a first TOC placeholder location. A second function call site of the calling function is corresponded to a second TOC placeholder location.
申请公布号 US9250875(B1) 申请公布日期 2016.02.02
申请号 US201414510225 申请日期 2014.10.09
申请人 International Business Machines Corporation 发明人 Gschwind Michael Karl;Weigand Ulrich
分类号 G06F9/45;G06F9/445 主分类号 G06F9/45
代理机构 代理人 Lowry Penny L.;Bennett Steven L.
主权项 1. A computer implemented method of compiling application source code into application object code, the method comprising: generating application object code, with a compiler, having a plurality of table of contents (TOC) placeholder locations for a potential TOC pointer value command within a calling function; corresponding a first function call site of the calling function to a first TOC placeholder location; corresponding a second function call site of the calling function to a second TOC placeholder location; identifying, by the compiler, the first function call site from the calling function to a first callee function; positioning the first TOC placeholder location for the potential TOC pointer value command of the calling function at a location in a first region of application object code before the first function call site but after an instruction that invalidates the potential TOC pointer value command, wherein the positioned first TOC placeholder has a first usage of computer resources when the calling function is executed with the potential TOC pointer value command; identifying the first TOC placeholder location is dominating the first function call site inserting a TOC placeholder instruction in the first TOC placeholder location; and inserting a first function call instruction with a relocation indicator pointing to the TOC placeholder instruction at the first function call site.
地址 Armonk NY US