arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.07390cs.SE
收藏

采用输出比较法对C99型断路器进行实际测试

Practical Testing of a C99 Compiler Using Output Comparison

Flash Sheridan

摘要:

本文提出了一种测试C99编译器的简单方法,通过将其输出与已有工具的输出进行比较。这种方法的优点是可以从现有的源代码中批量添加新的测试用例,减少了对正确性问题的深入调查以及手工创建新测试代码的需要。这项技术被用于测试PalmSource Palm OS Cobalt ARM C/C++交叉编译器,主要用于测试Palm-Powered个人数字助理的标准合规性和生成代码的正确执行。这里描述的技术发现了数百个bug,大部分在我们的内部代码中,但也在Edison Design Group和Apogee Software长期以来的高质量前端和后端代码中。它还在GNU C编译器中发现了18个bug,以及一个特定于Apple版本的GCC的bug,一个特定于Suse版本的GCC的bug,以及ARM处理器的GCC版本中的十几个bug,其中几个是关键的。

英文摘要:

A simple technique is presented for testing a C99 compiler, by comparison of its output with output from preexisting tools. The advantage to this approach is that new test cases can be added in bulk from existing sources, reducing the need for in-depth investigation of correctness issues, and for creating new test code by hand. This technique was used in testing the PalmSource Palm OS Cobalt ARM C/C++ cross-compiler for Palm-Powered personal digital assistants, primarily for standards-compliance and correct execution of generated code. The technique described here found several hundred bugs, mostly in our in-house code, but also in longstanding high-quality front- and back-end code from Edison Design Group and Apogee Software. It also found eighteen bugs in the GNU C compiler, as well as a bug specific to the Apple version of GCC, a bug specific to the Suse version of GCC, and a dozen bugs in versions of GCC for the ARM processor, several of them critical.

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

↑