Practical and Accurate Low-Level Pointer Analysis
Authors:
- 31 March 2005
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1060, 291-302
Abstract
Pointer analysis is traditionally performed once, early in the compilation process, upon an intermediate representation (IR) with source-code semantics. However, performing pointer analysis only once at this level imposes a phase-ordering constraint, causing alias information to become stale after subsequent code transformations. Moreover, high-level pointer analysis cannot be used at link time or run time, where the source code is unavailable. This paper advocates performing pointer analysis on a low-level intermediate representation. We present the first context-sensitive and partially flow-sensitive points-to analysis designed to operate at the assembly level. As we will demonstrate, low-level pointer analysis can be as accurate as high-level analysis. Additionally, our low-level pointer analysis also enables a quantitative comparison of propagating high-level pointer analysis results through subsequent code transformations, versus recomputing them at the low level. We show that, for C programs, the former practice is considerably less accurate than the latter.Keywords
This publication has 14 references indexed in Scilit:
- A storeless model of aliasing and its abstractions using finite representations of right-regular equivalence relations2003
- Pointer analysis2001
- Which pointer analysis should I use?2000
- Modular interprocedural pointer analysis using access paths2000
- Alias analysis of executable code1998
- Solving shape-analysis problems in languages with destructive updating1996
- Interprocedural may-alias analysis for pointers1994
- Context-sensitive interprocedural points-to analysis in the presence of function pointers1994
- The superblock: An effective technique for VLIW and superscalar compilationThe Journal of Supercomputing, 1993
- IMPACTACM SIGARCH Computer Architecture News, 1991