Method for reducing processor cycles used for global offset table address computation in a position independent shared library
Abstract
A process for compiling shared library source code into libraries in which the global offset table location is calculated only when a cross module boundary function call is made. The compiler process allocates a single global offset table pointer and then pre-appends a word to each function entry point containing the offset from that function entry point to the global offset table pointer. A calling module accesses the global offset table pointer and loads a global offset table register based on the offset and function entry point. Pointer logic instructions are inserted before pointer based branches using instruction cycles that would otherwise be lost to a pipeline stall in the preferred architecture.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 76.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for reducing function call global offset table address calculation during compilation of a plurality of callable functions compiled to create a shared library module containing executable code, the module having memory position independent code and a global offset table for resolving internal and external function references, the method comprising the steps of: inserting before each function entry point a function entry offset value representing the offset from the function entry point address to a module global offset table for the module; testing each function call to determine wh
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 76 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (5)
- Crowe, M., "Dynamic Compilation in the Unix Environment", Software Practice and Experience, vol. 17(7), 455-467, Jul. 1987.
- Crowe, M., Dynamic Compilation in the Unix Environment , Software Practice and Experience, vol. 17(7), 455 467, Jul. 1987.
- Dewhurst, S., "Flexible Symbol Table Structures for Compiling C++", Software Practice and Experience, vol. 17(8), 503-512, Aug. 1995.
- Dewhurst, S., Flexible Symbol Table Structures for Compiling C , Software Practice and Experience, vol. 17(8), 503 512, Aug. 1995.
- McAuliffe, M et al., "A Trace-Based Simulation of Pointer Swizzling Techniques", IEEE Data Engineering, 1995 11th International Conference, pp. 52-61, Mar. 1995.