在不同软件级别推断参数能耗函数:ISA与LLVM IR
Inferring Parametric Energy Consumption Functions at Different Software Levels: ISA vs. LLVM IR
摘要:
程序执行所消耗的能量的静态估计是一个重要的挑战,其在程序优化和验证中具有应用,并且有助于能量感知软件开发。我们的目标是估计这样的能量消耗的形式函数的输入数据大小的程序。我们已经开发了一个工具,用于实验与静态分析推断这样的能量功能在两个级别,指令集架构(ISA)和中间代码(LLVM IR)的水平,并反映它向上到更高的源代码级别。这需要开发从LLVM IR到中间表示的转换及其与现有组件的集成,从ISA到相同表示的转换,资源分析器,ISA级能量模型,以及从该模型到LLVM IR的映射。该方法已应用于在XCore架构上运行的XC语言编写的程序,但足够通用,可以应用于其他语言。实验结果表明,我们的LLVM IR级分析是相当准确的(与硬件测量相比,平均误差小于6.4%),比ISA级分析更强大。本文提供了深入了解在这些级别的精度与可分析性的权衡。
英文摘要:
The static estimation of the energy consumed by program executions is an important challenge, which has applications in program optimization and verification, and is instrumental in energy-aware software development. Our objective is to estimate such energy consumption in the form of functions on the input data sizes of programs. We have developed a tool for experimentation with static analysis which infers such energy functions at two levels, the instruction set architecture (ISA) and the intermediate code (LLVM IR) levels, and reflects it upwards to the higher source code level. This required the development of a translation from LLVM IR to an intermediate representation and its integration with existing components, a translation from ISA to the same representation, a resource analyzer, an ISA-level energy model, and a mapping from this model to LLVM IR. The approach has been applied to programs written in the XC language running on XCore architectures, but is general enough to be applied to other languages. Experimental results show that our LLVM IR level analysis is reasonably accurate (less than 6.4% average error vs. hardware measurements) and more powerful than analysis at the ISA level. This paper provides insights into the trade-off of precision versus analyzability at these levels.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。