Patent ID: 9110675
Filing Date: 2015-08-18
Classification: G06F

Abstract:
1. A computer system for usage of a table of contents (TOC) register as an application register, the system comprising: a memory having computer readable instructions; and a processor configured to execute the computer readable instructions, the instructions comprising: receiving, by the computer system, application object code comprising a first function call from a calling function to a first callee function, and a symbol table entry in a symbol table of the application object code comprising a first TOC register usage indicator that is associated with the first callee function; determining that the first callee function of the first function call does not require a TOC pointer based on the first TOC register usage indicator that is associated with the first callee function in the symbol table; and based on determining that the first callee function of the first function call does not require a TOC pointer, inserting a TOC save command and a TOC restore command corresponding to the first function call into the application object code.