loading...
Giving Meaning to Macros
Bari, Italy June 24-June 26
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/WPC.2004.131105012th IEEE International Workshop on P ...
 This Article 
 
PDF
HTML
 
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Christopher A. Mennie, University of Waterloo, Ontario, Canada
Charles L. A. Clarke, University of Waterloo, Ontario, Canada
With the prevalence of legacy C/C++ code, it continually becomes more important to address the issues of readability and maintainability. When considering the problems with refactoring or migrating C/C++ code we see how important a role pre-processor directives play. In part, because of these preprocessor directives it is extremely difficult to maintain our code.
We outline a method of fact extraction and manipulation to create a set of transformations that remove preprocessor directives from the original source, converting them into regular C/C++ code with as few changes as possible, while maintaining readability in the code. In addition, we briefly explore some of the subtle issues that arise when migrating preprocessor directives. After discussing the general architecture of our test implementation, we look at some metrics gathered by running it on two software systems.
Citation:
Christopher A. Mennie, Charles L. A. Clarke, "Giving Meaning to Macros," icpc, pp.79, 12th IEEE International Workshop on Program Comprehension (IWPC'04), 2004
Usage of this product signifies your acceptance of the Terms of Use.