Efficient call graph analysis
Mary W. Hall, Ken Kennedy · ACM Letters on Programming Languages and Systems · 1992
We present an efficient algorithm for computing the procedure call graph, the program representation underlying most interprocedural optimization techniques. The algorithm computes the possible bindings of procedure variables in languages where such variables only receive their values through parameter passing, such as Fortran. We extend the algorithm to accommodate a limited form of assignments to procedure variables. The resulting algorithm can also be used in analysis of functional programs that have been converted to Continuation-Passing-Style. We discuss the algorithm in relationship to other call graph analysis approaches. Many less efficient techniques produce essentially the same call graph. A few algorithms are more precise, but they may be prohibitively expensive depending on language features.
Cited by 82 works. doi:10.1145/151640.151643 Open-access PDF
Authors
References
- A unified approach to global program optimization
- Definitional interpreters for higher-order programming languages
- Exposing Side-Effects in a PL/I Optimizing Compiler.
- Lambda calculus schemata
- Customization: optimizing compiler technology for SELF, a dynamically-typed object-oriented programming language
- Customization: optimizing compiler technology for SELF, a dynamically-typed object-oriented programming language
- Interprocedural data flow analysis in the presence of pointers, procedure variables, and label variables
- Interprocedural side-effect analysis in linear time
- Control flow analysis in scheme
- Control-flow analysis of higher-order languages of taming lambda