Efficient compilation of family of related functions
Abstract
Consider a set of functions, each of whose calculations are almost identical. A common example is the set of trigonometric functions sine, cosine, and tangent. Each of these functions is computed by first performing argument reduction and some preliminary calculations, which are identical for all members of the set. A few unique instructions are performed at the end for each of the functions in the set. Normally, when such functions are encountered, a separate sequence of instructions is called for each function even if the functions appear in close proximity. This results in duplicate instructions being performed which increases execution time and length of compiled program. Specialized functions exists to minimize execution, but programs with such specialized function calls suffer from non-portability. The present invention includes a method and a system to optimize function calls for faster execution while maintaining portability. The present invention requires no specialized knowledge on the part of the programmer and also utilizes standard compiler optimization techniques.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A compiler used by a computer architecture to compile a family of related functions, comprising: a member recognize configured to recognize a member function from said family of related functions, wherein each member function of the family of member functions is a mathematical function operable to be executed using a set of instructions and a portion of the set of instructions for each member function are identical; a family start caller configured to make a family-start function call for said family of related functions, wherein the family-start function call is a call to a family-start funct
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (1)
- Aho et al., "Compilers: Principles, Techniques, and Tools", 1988, Addison-Wesley, pp. 428, 463, 592 and 596.