Compiling techniques for providing limited accuracy and enhanced performance granularity
Abstract
A programmable compiler detects from source code invocations of math functions that require reduced levels of accuracy, limited variable domains, or enhanced performance. The programmable compiler replaces such invocations with intrinsics from the compiler's own intrinsic library. The math function invocations are compiled into inline object code. The inline object can be subsequently optimized along with other object code through normal compiler optimization. If an accuracy requirement is beyond what any compiler intrinsic can provide, the programmable compiler preserves the invocation of the math function defined in a default library.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for compiling source code into object code, comprising: identifying, from the source code, a math function invocation; determining a selection criterion of the math function invocation based on a compiler-specific data type of an 1-value of the math function invocation, the selection criterion specifying that an accuracy requirement of the math function invocation, as measured in number of bits specified in the compiler-specific data type, is less than an accuracy of the math function being invoked, wherein the math function is stored in a math library; determinin
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (5)
- Dietz et al., "Floating-Point Computation with Just Enough Accuracy," Springer-Verlag, 2006, 8pg.
- Kum et al., "A Floating-Point to Integer C Converter With Shift Reduction for Fixed-Point Digital Signal Processors," IEEE, 1999, 7pg.
- Misha Brukman et al., "Extending LLVM: Adding instructions, intrinsics, types, etc.," Sep. 22, 2007.
- Ogasawara et al., "Optimizing precision overhead for x86 processors," John Wiley & Sons, 2004, 19pg.
- Tong et al., "Reducing Power by Optimizing the Necessary Precision/Range of Floating-Point Arithmetic," IEEE, 2000, 14pg.