魔鬼隐藏于命令行中:将编译器标志与二进制文件及构建元数据相关联
The Devil Is in the Command Line: Associating the Compiler Flags With the Binary and Build Metadata
AI总结:
针对编译器标志不一致引发软件缺陷的问题,提出构建可查询数据库以结构化跟踪编译和链接过程,从而更早检测缺陷并减少调试时间。
摘要:
工程师为多种架构、操作系统和配置构建大型软件系统。一组不一致或缺失的编译器标志会生成代码,对系统行为产生灾难性影响。在作者的工业经验中,由不理想的编译器标志组合引起的缺陷在非平凡软件项目中很常见。我们不知道有任何构建和CI/CD系统以结构化方式跟踪编译器如何生成特定二进制文件。我们假设,一个关于编译器如何编译和链接软件系统的可查询数据库将有助于更早检测缺陷并减少调试时间。
英文摘要:
Engineers build large software systems for multiple architectures, operating systems, and configurations. A set of inconsistent or missing compiler flags generates code that catastrophically impacts the system's behavior. In the authors' industry experience, defects caused by an undesired combination of compiler flags are common in nontrivial software projects. We are unaware of any build and CI/CD systems that track how the compiler produces a specific binary in a structured manner. We postulate that a queryable database of how the compiler compiled and linked the software system will help to detect defects earlier and reduce the debugging time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。