首页> 外文会议>Code Generation and Optimization, 2009. CGO 2009 >A Fast and Precise Static Loop Analysis Based on Abstract Interpretation, Program Slicing and Polytope Models
【24h】

A Fast and Precise Static Loop Analysis Based on Abstract Interpretation, Program Slicing and Polytope Models

机译:基于抽象解释,程序切片和多面体模型的快速精确的静态循环分析

获取原文

摘要

A static loop analysis is a program analysis computing loop iteration counts. This information is crucial for different fields of applications. In the domain of compilers, the knowledge about loop iterations can be exploited for aggressive loop optimizations like Loop Unrolling. A loop analyzer also provides static information about code execution frequencies which can assist feedback-directed optimizations. Another prominent application is the static worst-case execution time (WCET) analysis which relies on a safe approximation of loop iteration counts.In this paper, we propose a framework for a static loop analysis based on Abstract Interpretation, a theory of a sound approximation of program semantics. To accelerate the analysis, we preprocess the analyzed code using Program Slicing, a technique that removes statements irrelevant forthe loop analysis. In addition, we introduce a novel polytope-based loop evaluation that further significantly reduces the analysis time. The efficiency of our loop analyzer is evaluated on a large number of benchmarks. Results show that 99% of the considered loops could be successfully analyzed in an acceptable amount of time. This study points out that our methodology is best suited for real-world problems.
机译:静态循环分析是一种计算循环迭代次数的程序分析。这些信息对于不同的应用领域至关重要。在编译器领域,可以将有关循环迭代的知识用于积极的循环优化,例如循环展开。循环分析器还提供有关代码执行频率的静态信息,可以帮助进行反馈定向的优化。另一个最突出的应用是静态最坏情况执行时间(WCET)分析,该分析依赖于循环迭代计数的安全近似值。在本文中,我们提出了基于抽象解释(一种声音近似理论)的静态循环分析框架。程序语义。为了加快分析速度,我们使用程序切片(Program Slicing)对被分析的代码进行预处理,该技术可删除与循环分析无关的语句。此外,我们介绍了一种新颖的基于多位点的定量环评估方法,该方法可进一步显着减少分析时间。我们的环路分析仪的效率通过大量基准进行评估。结果表明,可以在可接受的时间内成功分析99%的已考虑循环。这项研究指出,我们的方法最适合实际问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号