Macro impact analysis using macro slicing

László Vidács, Arpád Beszédes, Rudolf Ferenc

Research output: Contribution to conferencePaper

10 Citations (Scopus)


The expressiveness of the C/C++ preprocessing facility enables the development of highly configurable source code. However, the usage of language constructs like macros also bears the potential of resulting in highly incomprehensible and unmaintainable code, which is due to the flexibility and the "cryptic" nature of the preprocessor language. This could be overcome if suitable analysis tools were available for preprocessor-related issues, however, this is not the case (for instance, none of the modern Integrated Development Environments provides features to efficiently analyze and browse macro usage). A conspicuous problem in software maintenance is the correct (safe and efficient) management of change. In particular, due to the aforementioned reasons, determining efficiently the impact of a change in a specific macro definition is not yet possible. In this paper, we describe a method for the impact analysis of macro definitions, which significantly differs from the previous approaches. We reveal and analyze the dependencies among macro-related program points using the so-called macro slices.

Original languageEnglish
Number of pages6
Publication statusPublished - Dec 1 2007
Event2nd International Conference on Software and Data Technologies, ICSOFT 2007 - Barcelona, Spain
Duration: Jul 22 2007Jul 25 2007


Other2nd International Conference on Software and Data Technologies, ICSOFT 2007


  • C
  • C++
  • Change impact analysis
  • Dynamic analysis
  • Macros
  • Maintenance
  • Preprocessing
  • Program analysis
  • Program slicing
  • Program understanding

ASJC Scopus subject areas

  • Computer Science Applications
  • Information Systems
  • Software
  • Electrical and Electronic Engineering

Fingerprint Dive into the research topics of 'Macro impact analysis using macro slicing'. Together they form a unique fingerprint.

  • Cite this

    Vidács, L., Beszédes, A., & Ferenc, R. (2007). Macro impact analysis using macro slicing. 230-235. Paper presented at 2nd International Conference on Software and Data Technologies, ICSOFT 2007, Barcelona, Spain.