A compiler scheme for reusing intermediate computation results

CGO(2004)

引用 37|浏览7
暂无评分
摘要
Recent research has shown that programs often exhibit value locality. Such locality occurs when a code segment, although executed repeatedly in the program, takes only a small number of different values as input and, naturally, generates a small number of different outputs. It is potentially beneficial to replace such a code segment by a table, which records the computation results for the previous inputs. When the program execution re-enters the code segment with a repeated input, its computation can be simplified to a table look-up. We discuss a compiler scheme to identify code segments, which are good candidates for computation reuse. We discuss the conditions under which the table look-up costs less than repeating the execution, and we perform profiling to identify candidates, which have many repeated inputs at run time. Compared to previous work, this scheme requires no special hardware support and is therefore particularly useful for resource constrained systems such as handheld computing devices. We implement our scheme and its supporting analyses in GCC. We experiment with several multimedia benchmarks and the GNU Go game by executing them on a handheld computing device. The results show the scheme to improve the performance and to reduce the energy consumption quite substantially for these programs.
更多
查看译文
关键词
reusing intermediate computation results,value locality,cost-benefit analysis,computation result,program interpreters,compiler scheme,code segment,table look-up,different value,different output,handheld computing devices,program profiling,good candidatesfor computation reuse,code segmentwith,exhibitvalue locality,gnu go game,resource constrained systems,repeated input,program compiler,intermediate computation reuse,energy consumption,optimising compilers,multimedia benchmarks,software reusability,asmall number,table lookup,comparedto previous work,handheld computer,impedance matching,process design,computer science,hardware,registers,cost benefit analysis
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要