Preprocessor conditional removal by simple partial evaluation

被引:44
作者
Baxter, ID
Mehlich, M
机构
来源
EIGHTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS | 2001年
关键词
partial evaluation; symbolic computation; preprocessor; program transformations;
D O I
10.1109/WCRE.2001.957833
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Preprocessors with conditionals are often used as software configuration management tools, with preprocessor variables naming configuration aspects. The preprocessor conditionals found in large systems often have complex enabling Boolean equations and nesting. Over long periods, some configuration aspects lose all utility. Removal of all traces of a configuration variable and code dependent on that aspect becomes a significant task if performed manually. An industrial-strength transformation system can remove such configuration aspects in a much shorter period of time, by symbolically simplifying away the configuration aspect. This paper sketches the problem, and the required transforms, and discusses a case study involving over a million lines of source code.
引用
收藏
页码:281 / 290
页数:10
相关论文
共 10 条
[1]  
BAXTER I, 1997, P INT C SOFTW MAINT
[2]  
BAXTER I, 1997, 4 WORK C REV ENG IEE
[3]  
BAXTER I, 1992, COMM ACM, V35
[4]  
BAXTER ID, 1998, P INT C SOFTW MAINT
[5]  
FAVRE J, 1997, P C SOFTW MAINT REEN
[6]  
Hu Y., 2000, P INT C SOFTW MAINT
[7]  
JONES ND, 1993, PARTIAL EVALUATION A
[8]  
*SEM DES, 1998, PARLANSE REF MAN
[9]  
TOMITA M, 1988, EFFICIENT PARSING NA
[10]  
VANDENBRAND M, 1998, P 6 INT WORKSH PROGR