Giving meaning to macros
Giving meaning to macros
复制标题
赋予宏意义
DOI:
--
复制
发表时间:
2004
期刊:
影响因子:
--
通讯作者:
C. Clarke
中科院分区:
文献类型:
--
作者:
Christopher A. Mennie;C. Clarke
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 preprocessor 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.