Impact of Function Pointers on the Call Graph

  • Authors:
  • G. Antoniol;F. Calzolari;P. Tonella

  • Affiliations:
  • -;-;-

  • Venue:
  • CSMR '99 Proceedings of the Third European Conference on Software Maintenance and Reengineering
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

Maintenance activities are made more difficult when pointers are heavily used in source code: the programmer needs to build a mental model of memory locations and of the way they are accessed by means of pointers, in order to comprehend the functionalities of the system.Although several points-to analysis algorithms have been proposed in literature to provide information about memory locations referenced by pointers, there are no quantitative evaluations of the impact of pointers on the overall program understanding activities.Program comprehension activities are usually supported by tools, providing suitable views of the source program. One of the most widely used code views is the Call Graph, a graph representing calls between functions in the given program. Unfortunately, when pointers, and especially function pointers, are heavily used in the code, the extracted call graph is highly inaccurate and thus of little usage, if a points-to analysis is not preliminarly performed.In this paper we will address the problem of evaluating the impact of pointers analysis on the Call Graph. The results, obtained on a set of real world programs, provide a quantitative evaluation and show the key role of pointer analysis in Call Graph construction.