作者
Chris Lattner, Andrew Lenharth, Vikram Adve
发表日期
2007/6/10
期刊
ACM SIGPLAN Notices
卷号
42
期号
6
页码范围
278-289
出版商
ACM
简介
Context-sensitive pointer analysis algorithms with full "heapcloning" are powerful but are widely considered to be too expensive to include in production compilers. This paper shows, for the first time, that a context-sensitive, field-sensitive algorithm with fullheap cloning (by acyclic call paths) can indeed be both scalable and extremely fast in practice. Overall, the algorithm is able to analyze programs in the range of 100K-200K lines of C code in 1-3 seconds,takes less than 5% of the time it takes for GCC to compile the code (which includes no whole-program analysis), and scales well across five orders of magnitude of code size. It is also able to analyze the Linux kernel (about 355K linesof code) in 3.1 seconds. The paper describes the major algorithmic and engineering design choices that are required to achieve these results, including (a) using flow-insensitive and unification-basedanalysis, which are essential to …
引用总数
2007200820092010201120122013201420152016201720182019202020212022202320244919231820181927203325292815211818