Patent ID: 9218170
Filing Date: 2015-12-22
Classification: G06F

Abstract:
1. A method for managing table of contents (TOC) pointer value save instructions in computer code, the computer code having a plurality of TOC pointer value save placeholders, the method comprising: identifying, with a compiler, a first function call in the computer code, the first function call associated with a linker directive, the linker directive associating the first function call with a single TOC pointer value save placeholder, the single TOC pointer value save placeholder being the only TOC pointer value save placeholder associated with the first function call, a single TOC pointer value save instruction, when occupying the single TOC pointer value save placeholder, ensuring that a TOC pointer value is saved before the first function call; and modifying the linker directive to associate the first function call with a first TOC pointer value save placeholder and to further associate the first function call with a second TOC pointer value save placeholder, at least one TOC pointer value save instruction, when occupying at least one of the first TOC pointer value save placeholder and the second TOC pointer value save placeholder, ensuring that the TOC pointer value is saved before the first function call.