A Change-Centric Approach to Compile Configurable Systems with #ifdefs
Configurable systems typically use #ifdefs to denote variability. Generating and compiling all configurations may be time-consuming. An alternative consists of using variability-aware parsers, such as TypeChef. However, they may not scale. In practice, developers can use sampling strategies to compile only a subset of the configurations. We propose a change-centric approach to compile configurable systems with #ifdefs by analyzing only configurations impacted by a code change. We implement it in a tool called CHECKCONFIGMX, which reports the new compilation errors introduced by the transformation. We perform an empirical study to evaluate 3,913 transformations applied to the 14 largest files of BusyBox, Apache HTTPD, and Expat configurable systems. CHECKCONFIGMX finds 595 compilation errors of 20 types introduced by 41 developers in 214 commits (5.46% of the analyzed transformations). In our study, it reduces at least 50% (an average of 99%) the number of compiled configurations by comparing with the exhaustive approach without considering a feature model. CHECKCONFIGMX may help developers to reduce compilation effort to evaluate fine-grained transformations applied to configurable systems with #ifdefs.
Tue 1 NovDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
10:30 - 12:10 | Feature Models and Product LinesGPCE at Zürich 1 Chair(s): Christoph Seidl Technische Universität Braunschweig | ||
10:30 30mTalk | A Change-Centric Approach to Compile Configurable Systems with #ifdefs GPCE Larissa Braz Federal University of Campina Grande, Rohit Gheyi UFCG, Brazil, Melina Mongiovi , Márcio Ribeiro Federal University of Alagoas (UFAL), Flavio Medeiros , Leopoldo Teixeira Federal University of Pernambuco | ||
11:00 30mTalk | A Feature-Based Personalized Recommender System for Product-Line Configuration GPCE Juliana Alves Pereira University of Magdeburg, Pawel Matuszyk University of Magdeburg, Sebastian Krieter Magdeburg University, Myra Spiliopoulou University of Magdeburg, Gunter Saake Magdeburg University | ||
11:30 30mTalk | Explaining Anomalies in Feature Models GPCE Matthias Kowal TU Braunschweig, Germany, Sofia Ananieva FZI Research Center for Information Technology, Thomas Thüm University of Ulm |