Detecting semantic changes in Makefile build code

Jafar M. Al-Kofahi, H. V. Nguyen, A. Nguyen, T. Nguyen, T. Nguyen
{"title":"Detecting semantic changes in Makefile build code","authors":"Jafar M. Al-Kofahi, H. V. Nguyen, A. Nguyen, T. Nguyen, T. Nguyen","doi":"10.1109/ICSM.2012.6405266","DOIUrl":null,"url":null,"abstract":"Build code in a Makefile represents the build rules with the dependencies among the files, and how they must be built together to produce a software system. As software evolves, its build code evolves as well to accommodate necessary changes in the build process. As part of software maintenance, it is crucial to understand how the build code is changed (e.g. changes in build rules or dependencies), and to verify and validate the correctness of the build process with different build configurations. Due to Make's dynamic nature, understanding and managing the changes to Makefiles is not trivial. In this paper, we introduce a set of semantic changes to build code in Makefiles. We also develop MkDiff, a tool to detect the changes to a Makefile at the semantic level. MkDiff uses symbolic dependency graphs (SDG) to find all possible concrete rules from a Makefile, and the dependencies among them. For two SDGs built from a Makefile at two versions, it first detects changed and unchanged nodes via its SDG matching algorithm. Then, from those results, it derives the semantic changes to the Makefile. Our empirical evaluation for MkDiff showed that it can accurately detect semantic changes in Makefiles.","PeriodicalId":348790,"journal":{"name":"2012 28th IEEE International Conference on Software Maintenance (ICSM)","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-09-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"16","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 28th IEEE International Conference on Software Maintenance (ICSM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSM.2012.6405266","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 16

Abstract

Build code in a Makefile represents the build rules with the dependencies among the files, and how they must be built together to produce a software system. As software evolves, its build code evolves as well to accommodate necessary changes in the build process. As part of software maintenance, it is crucial to understand how the build code is changed (e.g. changes in build rules or dependencies), and to verify and validate the correctness of the build process with different build configurations. Due to Make's dynamic nature, understanding and managing the changes to Makefiles is not trivial. In this paper, we introduce a set of semantic changes to build code in Makefiles. We also develop MkDiff, a tool to detect the changes to a Makefile at the semantic level. MkDiff uses symbolic dependency graphs (SDG) to find all possible concrete rules from a Makefile, and the dependencies among them. For two SDGs built from a Makefile at two versions, it first detects changed and unchanged nodes via its SDG matching algorithm. Then, from those results, it derives the semantic changes to the Makefile. Our empirical evaluation for MkDiff showed that it can accurately detect semantic changes in Makefiles.
检测Makefile构建代码中的语义变化
Makefile中的构建代码代表了带有文件之间依赖关系的构建规则,以及它们必须如何一起构建以生成软件系统。随着软件的发展,它的构建代码也在发展,以适应构建过程中必要的变化。作为软件维护的一部分,了解构建代码是如何更改的(例如,构建规则或依赖项的更改),以及使用不同的构建配置验证构建过程的正确性是至关重要的。由于Make的动态特性,理解和管理对makefile的更改并非易事。在本文中,我们引入了一组语义更改来在Makefiles中构建代码。我们还开发了MkDiff,这是一个在语义级别检测对Makefile的更改的工具。MkDiff使用符号依赖图(SDG)从Makefile中找到所有可能的具体规则,以及它们之间的依赖关系。对于从两个版本的Makefile构建的两个SDG,它首先通过其SDG匹配算法检测更改和未更改的节点。然后,从这些结果中派生出对Makefile的语义更改。我们对MkDiff的经验评估表明,它可以准确地检测makefile中的语义变化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书