Back to results
US 7,065,758 B2Granted
Optimize code for a family of related functions
AssigneeHewlett-Packard Development Company, L.P.
InventorsPeter Markstein, James W. Thomas, Kevin Crozier
Life of this patent
Estimating the term…
Abstract
A system to optimize code for a family of related functions. The system recognizes a function call as being a member of a family of related functions. For the member function, the system replaces the member call with corresponding family-start and member-finish function calls.
Claims20
A computer-implemented system to optimize code for a family of related functions, comprising:
- a pre-optimizer configured to generate a pre-optimized code from a program wherein a member function call within the program is replaced with corresponding family-start and member-finish function calls,
- wherein the pre-optimizer is configured to recognize the member function call as a call to a member function that is included in a family of related mathematical functions and each member function of the family of related mathematical functions is operable to be executed using a set of instructions and a portion of the set of instructions for each member function are identical,
- wherein the family-start function call is a call to a family-start function performing the identical set of instructions for each member function and the member-finish function call is a call to a member-finish function performing instructions unique to the member function;
- and
- an optimizer configured to generate an optimized code based on the pre-optimized code.
2 more elements
A computer-implemented system to generate a pre-optimized code from a program, comprising:
- a member recognizing module configured to recognize a member function from a family of related mathematical functions, wherein each member function of the family of related mathematical functions is 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 calling module configured to make a family-start function call associated with the family of related mathematical functions based an output from the member recognizing module, wherein the family-start function call is a call to a family-start function performing the identical set of instructions for each member function;
- a member-finish calling module configured to make a member-finish function call associated with the member function based on the output from the member recognizing module, wherein the member-finish function call is a call to a member-finish function performing instructions unique to the member function;
- and
- a pre-optimizing module configured to generate the pre-optimized code based on outputs from the member recognizing module, the family-start module, and the member-finish calling module.
2 more elements
A computer-implemented system to generate a pre-optimized code from a program, comprising:
- means for recognizing a member function from a family of related mathematical functions, wherein each member function of the family of related mathematical functions is operable to be executed using a set of instructions and a portion of the set of instructions for each member function are identical;
- means for making a family-start function call associated with the family of related mathematical functions based on an output from the member recognizing module, wherein the family-start function call is a call to a family-start function performing the identical set of instructions for each member function;
- means for making a member-finish function call associated with the member function based on the output from the means for recognizing, wherein the member-finish function call is a call to a member-finish function performing instructions unique to the member function;
- and
- means for generating the pre-optimized code based on outputs from the means for recognizing, the means for making the family-start function call, and the means for making the member-finish function call.
2 more elements
Dependencies are inferred from the claim text.