Developer Support for Understanding Preprocessor Macro Expansions

Communications in Computer and Information Science(2012)

引用 1|浏览17
暂无评分
摘要
In the age of advanced integrated development environments there is a lack of support for understanding preprocessor macros. The preprocessor has proven to be a powerful tool for decades, but the developer is still guided poorly when the debugger stops at a source code line containing macros. The main problem is that the developer sees the original code, while the compiler uses the preprocessed code in the background. Investigating the usually nested macro calls can be a labor intensive tasks, which increases the overall effort spent on development and maintenance. There are several possibilities to help the developer in similar situations, but these are rarely employed since the preprocessor has its own, separate language to be analyzed. We implemented a Visual Studio plug-in (AddIn) that provides hand-on information on macros to increase the productivity of developers during debugging or program comprehension tasks. We enhanced the idea of macro folding, a technique to show/hide macro names and values within the source code editor; and defined a graphical view for macro expansions. In the background precise dynamic analysis of directives takes place, so the hint given for the developers considers all kind of preprocessor constructs like macros in conditionals and concatenating operators in the replacement text.
更多
查看译文
关键词
Source Code, Visual Studio, Software Maintenance, Graphical View, Integrate Development Environment
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要