arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.14823cs.SE
收藏

在工业嵌入式软件中,是否某些编译错误比其他错误更容易定位和修复?

In industrial embedded software, are some compilation errors easier to localize and fix than others?

Han Fu, Sigrid Eldh, Kristian Wiklund, Andreas Ermedahl, Philipp Haller, Cyrille Artho

AI总结:

本研究针对工业嵌入式系统CI阶段编译错误比例高的问题,构建了Shadow Job诊断方案,通过分析4个项目超4万次构建,发现最常见的5种错误占89%,并揭示了错误解决时间、大小和距离相互独立,为故障定位提供了人工成本见解和未来研究方向。

摘要:

工业嵌入式系统通常需要专用硬件。然而,软件工程师仅在持续集成(CI)阶段才能访问此类特定领域硬件,而在其他情况下必须使用模拟硬件。这导致CI阶段的编译错误比例高于其他类型的系统,值得深入研究。为此,我们创建了一个名为“Shadow Job”的CI诊断解决方案,用于分析我们的工业CI系统。我们从4个项目的产品源代码中收集了超过40000次构建,并将编译错误分为14种错误类型,结果表明最常见的5种错误占所有编译错误的89%。此外,我们分析了每种错误类型的解决时间、大小和距离,以观察不同类型的编译错误是否比其他错误更容易定位或修复。结果显示,解决时间、大小和距离彼此独立。我们的研究还提供了关于修复最常见的工业编译错误所需人工成本的见解,并指出了未来故障定位研究中最具前景的方向。

英文摘要:

Industrial embedded systems often require specialized hardware. However, software engineers have access to such domain-specific hardware only at the continuous integration (CI) stage and have to use simulated hardware otherwise. This results in a higher proportion of compilation errors at the CI stage than in other types of systems, warranting a deeper study. To this end, we create a CI diagnostics solution called ``Shadow Job'' that analyzes our industrial CI system. We collected over 40000 builds from 4 projects from the product source code and categorized the compilation errors into 14 error types, showing that the five most common ones comprise 89 % of all compilation errors. Additionally, we analyze the resolution time, size, and distance for each error type, to see if different types of compilation errors are easier to localize or repair than others. Our results show that the resolution time, size, and distance are independent of each other. Our research also provides insights into the human effort required to fix the most common industrial compilation errors. We also identify the most promising directions for future research on fault localization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑