arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv cs/0610096cs.SE
收藏

程序理解的部分求值

Partial Evaluation for Program Comprehension

Sandrine Blazy

摘要:

软件维护是软件生存周期的一个重要阶段,程序理解是软件维护中最繁琐、最耗时的工作。在维护已经用Fortran编写了几十年的科学应用程序时尤其如此,这些程序在各个领域中仍然至关重要,即使使用更现代的语言来实现其用户界面。通常,程序随着其应用领域的不断增加而发展,并且由于大量修改而变得非常复杂。程序中的这种通用性是由输入变量实现的,这些变量的值在给定应用程序的上下文中不会变化。因此,这是非常有趣的维护者传播这样的信息,即获得一个简化的程序,它的行为就像最初的一个根据限制使用。我们已经适应了程序理解的部分评估。我们的部分计算器主要执行两个任务:常量传播和语句简化。它包括一个过程间别名分析。由于我们的目标是程序理解而不是优化,因此与经典的部分求值有两个主要区别。我们不改变原来的

英文摘要:

Program comprehension is the most tedious and time consuming task of software maintenance, an important phase of the software life cycle. This is particularly true while maintaining scientific application programs that have been written in Fortran for decades and that are still vital in various domains even though more modern languages are used to implement their user interfaces. Very often, programs have evolved as their application domains increase continually and have become very complex due to extensive modifications. This generality in programs is implemented by input variables whose value does not vary in the context of a given application. Thus, it is very interesting for the maintainer to propagate such information, that is to obtain a simplified program, which behaves like the initial one when used according to the restriction. We have adapted partial evaluation for program comprehension. Our partial evaluator performs mainly two tasks: constant propagation and statements simplification. It includes an interprocedural alias analysis. As our aim is program comprehension rather than optimization, there are two main differences with classical partial evaluation. We do not change the original

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑