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

编译器生成的调试信息的准确覆盖率度量

Accurate Coverage Metrics for Compiler-Generated Debugging Information

J. Ryan Stinnett, Stephen Kell

AI总结:

针对优化程序调试信息不完整且现有覆盖率度量方法粗糙不可比的问题,提出可由工具计算的新度量标准,以激励语言实现提升调试质量。

摘要:

许多调试工具依赖编译器生成的元数据来呈现程序状态的源语言视图,例如变量值和源代码行号。虽然这对于未优化程序通常有效,但当前编译器在优化程序中往往只生成部分调试信息。现有的衡量局部变量覆盖范围的方法基于粗略的假设(例如,假设变量可以覆盖其整个父作用域),并且在不同编译之间不具有可比性。在这项工作中,我们提出了一些新的度量标准,这些度量标准可由我们的工具计算,可作为语言实现改进调试质量的动力。

英文摘要:

Many debugging tools rely on compiler-produced metadata to present a source-language view of program states, such as variable values and source line numbers. While this tends to work for unoptimised programs, current compilers often generate only partial debugging information in optimised programs. Current approaches for measuring the extent of coverage of local variables are based on crude assumptions (for example, assuming variables could cover their whole parent scope) and are not comparable from one compilation to another. In this work, we propose some new metrics, computable by our tools, which could serve as motivation for language implementations to improve debugging quality.

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

↑