Loading [MathJax]/extensions/MathMenu.js
Understanding code containing preprocessor constructs | IEEE Conference Publication | IEEE Xplore

Understanding code containing preprocessor constructs


Abstract:

Understanding, debugging, and maintaining software is a costly and difficult task. The difficulties are exacerbated in programs written to take advantage of preprocessing...Show More

Abstract:

Understanding, debugging, and maintaining software is a costly and difficult task. The difficulties are exacerbated in programs written to take advantage of preprocessing facilities. This paper examines problems associated with source code containing preprocessor constructs-i.e. included files, conditional compilation and macros. We define the useful mappings from tokens in the preprocessor's output to the source file(s), and propose that by capturing these correspondences, an internal program representation can be built which allows for the use of maintenance techniques including program slicing, ripple analysis and dicing. The method presented is generic; to illustrate that the technique is feasible, we discuss ANSI C preprocessor constructs-in particular, macro substitution-and explain the modus developed to handle them in GHINSU-an integrated maintenance environment for ANSI C programs.<>
Date of Conference: 14-15 November 1994
Date Added to IEEE Xplore: 06 August 2002
Print ISBN:0-8186-5647-6
Print ISSN: 1092-8138
Conference Location: Washington, DC, USA

Contact IEEE to Subscribe

References

References is not available for this document.