|
计算机科学 2003
Dynamic Reuse Based on Region
|
Abstract:
Empirical observations suggest that many instructions and groups of instructions having the same inputs, and producing the same outputs. Such instructions do not have to be executed repeatedly -their result can be obtained from records where they have been saved previously. This paper proposes an approach that uses compiler technique to exploit reuse for instruction group. In this approach, the compiler first identifies code regions whose computation can be reused during dynamic execution. For each region, a library routing is invoked before the instruction in the region is executed. The function of the library routes is to record several instances of the region execution,including input register values and output register values. When it is found that a region has an instance that can be reused,then all the instructions in the region can be skipped and hence improve the performance.