Giving meaning to macros

Giving meaning to macros
复制标题

赋予宏意义

DOI:
--
复制
发表时间:
2004
期刊:
Proceedings. 12th IEEE International Workshop on Program Comprehension, 2004.
影响因子:
--
通讯作者:
C. Clarke
C. Clarke
中科院分区:
--
文献类型:
--
作者:
Christopher A. Mennie;C. Clarke

文献摘要

被引文献

相似文献

随着遗留C/C++代码的流行,解决可读性和可维护性问题变得越来越重要。在考虑重构或迁移C/C++代码的问题时,我们看到预处理器指令扮演的角色是多么重要。在某种程度上,由于这些预处理器指令,维护我们的代码非常困难。我们概述了一种事实提取和操作的方法,以创建一组转换,从原始源代码中删除预处理器指令,将它们转换为常规的C/C++代码,尽可能少的更改,同时保持代码的可读性。此外,我们还将简要探讨在迁移预处理器指令时出现的一些微妙问题。在讨论了我们的测试实现的一般架构之后,我们来看看通过在两个软件系统上运行它而收集的一些度量。
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.