2010 · 308 citations · 27 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringProgramming Language DesignProgramming Language ImplementationSoftware ArchitectureSoftware DesignSoftware MetricsAbstractionAbstraction MechanismsCode Complexity AnalysisLanguage DesignOpen-source Software DevelopmentProgram Comprehension
Over 30 years ago, the preprocessor cpp was developed to extend the programming language C by lightweight metaprogramming capabilities. Despite its error-proneness and low abstraction level, the preprocessor is still widely used in present-day software projects to implement variable software. However, not much is known about how cpp is employed to implement variability. To address this issue, we have analyzed forty open-source software projects written in C. Specifically, we answer the following questions: How does program size influence variability? How complex are extensions made via cpp's variability mechanisms? At which level of granularity are extensions applied? Which types of extension occur? These questions revive earlier discussions on program comprehension and refactoring in the context of the preprocessor. To provide answers, we introduce several metrics measuring the variability, complexity, granularity, and types of extension applied by preprocessor directives. Based on the collected data, we suggest alternative implementation techniques. Our data set is a rich source for rethinking language design and tool support.
27
M. G. Kendall, B. B. Smith · The Annals of Mathematical Statistics · 1939 · 886 citations · Full text
Comparison and Evaluation of Clone Detection Tools
Stefan Bellon, Rainer Koschke, Giulio Antoniol et al. · IEEE Transactions on Software Engineering · 2007 · 779 citations
Granularity in software product lines
Christian Kästner, Sven Apel, Martin Kuhlemann · 2008 · 495 citations