Affiliation:
1. University of California, Berkeley
Abstract
We describe a translation validation infrastructure for the GNU C
compiler. During the compilation the infrastructure compares the intermediate form of the program before and after each compiler pass and verifies the preservation of semantics. We discuss a general framework that the optimizer can use to communicate to the validator what transformations were performed. Our implementation however does not rely on help from the optimizer and it is quite successful by using instead a few heuristics to detect the transformations that take place.
The main message of this paper is that a practical translation validation infrastructure, able to check the correctness of many of the transformations performed by a realistic compiler, can be implemented with about the effort typically required to implement one compiler pass. We demonstrate this in the context of the GNU C compiler for a number of its optimizations while compiling realistic programs such as the compiler itself or the Linux kernel. We believe that the price of such an infrastructure is small considering the qualitative increase in the ability to isolate compilation errors during compiler testing and maintenance.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference22 articles.
1. Explicit substitutions
2. A certifying compiler for Java
3. An approach to compiler correctness
4. Cygnus Solutions. DejaGnu Testing Framework. http://www gnu. org/software / dej agnu / dej agnu. h Cygnus Solutions. DejaGnu Testing Framework. http://www gnu. org/software / dej agnu / dej agnu. h
Cited by
211 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献