Method, Apparatus And Computer Program Product Providing Instruction Monitoring For Reduction Of Energy Usage
AssigneeInternational Business Machines Corporation
InventorTimothy J. Chainer
Life of this patent
Estimating the term…
Abstract
A method is disclosed to operate a power advisor. The method includes, reading a first instruction set; reading a data bus; and reading register value(s) stored in at least one data register. This information is analyzed for energy usage purposes. If a set of instruction can provide the same result with a lower energy usage, the first instruction set is replaced with the lower power usage instruction set. An apparatus and computer program product are also disclosed.
Claims20
A method comprising:
- analyzing a first instruction set, a data bus, and at least one register value stored in at least one data register, where the first instruction set comprises instructions for an arithmetic logic unit;
- identifying a second instruction set for the arithmetic logic unit such that the second instruction set provides a same result as the first instruction set based, at least in part, on the analysis;
- determining a first energy usage of the first instruction set and a second energy usage of the second instruction set;
- and
- in response to a determination that the second energy usage is lower than the first energy usage, replacing the first instruction set with the second instruction set.
An apparatus, coupled to an instruction register, a data bus, and at least one data register, comprising:
- a processor configured to analyze a first instruction set stored in the instruction register, a data bus, and at least one register value stored in the at least one data register, where the first instruction set comprises instructions for an arithmetic logic unit, to identify a second instruction set for the arithmetic logic unit such that the second instruction set provides a same result as the first instruction set based, at least in part, on the analysis, and to determine a first energy usage of the first instruction set and a second energy usage of the second instruction set;
- and
- an output configured to replace the first instruction set with a second instruction set in response to a determination that the second energy usage is lower than the first energy usage.
A memory medium that stores computer program instructions the execution of which result in operations that comprise:
- analyzing a first instruction set, a data bus, and at least one register value stored in at least one data register, where the first instruction set comprises instructions for an arithmetic logic unit;
- identifying a second instruction set for the arithmetic logic unit such that the second instruction set provides a same result as the first instruction set based, at least in part, on the analysis;
- determining a first energy usage of the first instruction set and a second energy usage of the second instruction set;
- and
- in response to a determination that the second energy usage is lower than the first energy usage, replacing the first instruction set with the second instruction set.
An apparatus comprising:
- means for analyzing a first instruction set, a data bus, and at least one register value stored in at least one data register, where the first instruction set comprises instructions for an arithmetic logic unit;
- and
- means for identifying a second instruction set for the arithmetic logic unit such that the second instruction set provides a same result as the first instruction set based, at least in part, on the analysis;
- means for determining a first energy usage of the first instruction set and a second energy usage of the second instruction set;
- and
- means for replacing the first instruction set with a second instruction set in response to a determination that the second energy usage is lower than the first energy usage.
Dependencies are inferred from the claim text.