Optimizing cache efficiency within application software
Abstract
The present invention finds the optimum organization of compiled code within an application to ensure maximal cache efficiency. A configuration file specifies predefined cache, optimization, and application parameters. The cache parameters include a cache size, cache line size, set associativity, address-to-cache-line mapping algorithm, and set replacement algorithm. The optimization parameters specify the minimum acceptable efficiency level. The application parameters include a list of object modules and functions within those modules. All possible orderings of the modules are stepped through to determine where the specified functions fall within the cache given the location of the function within the module. The function locations in each permutation of the orderings are analyzed to find a solution that matches or beats the optimization parameters. In an embodiment, a front-end analysis program (“tool”) and a back-end processing stage, usually related to a linker, are provided. The tool reads the configuration file, analyzes the application, and recommends the optimal solution. In an embodiment, a development tool can be used instead of the front-end analysis tool. In another emb
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 8.
Claims (3 — 2 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method for optimizing cache efficiency, comprising the steps of: receiving an application that includes a plurality of functions, said functions including compiled code, which are executed by a processor; locating each function; ordering said functions for placement in a cache memory comprising cache sets, wherein said ordering is repeated until reaching a specified stopping point, wherein each permutation of said ordering produces a unique ordered sequence; evaluating the efficiency of each permutation of said ordering; and selecting a permutation in which the code is s
- Claim 2Depends on #1
The method of claim 1 , wherein said locating step comprises the step of: determining at least one of a start address and an ending address for each function.
- Claim 3Independent Claim
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (1)
- Brad Calder, Chandra Krintz, Simmi John, and Todd Austin, "Cache-Conscious Data Placement", (C) 1998 ACM. 8<SUP>th </SUP>Int'l Conference on Architectural Support for Programming languages and Operating Systems, Oct. 1998.