Patent ID: 9329875
Filing Date: 2016-05-03
CPC Classification: G06F

Claim Text:
1. A computer system for a global entry point and a local entry point for a callee function, the system comprising: a memory; and a processor, communicatively coupled to said memory, the computer system configured to perform a method comprising: executing, by the processor, a function call from a calling function to the callee function, the executing comprising: based on the function call being a direct and external function call, entering the callee function at the global entry point of the callee function and executing prologue code in the callee function that calculates and stores a table of contents (TOC) value for the callee function in a TOC register, wherein the TOC value for the callee function is calculated by the prologue code based on a function address register and an offset; based on the function call being a direct and local function call, entering the callee function at the local entry point of the callee function, wherein entering the callee function at the local entry point skips the prologue code; and based on the function call being an indirect function call, entering the callee function at the global entry point and executing the prologue code; wherein the global entry point, prologue code, and local entry point are inserted into the callee function by a compiler, such that the compiler inserts the global entry point at the beginning of the calling function, inserts the prologue code directly after the global entry point, and inserts the local entry point directly after the prologue code and before body of the callee function.