Automatic detection and diagnosis of faults in generated code for procedure calls

被引:6
作者
Bailey, MW
Davidson, JW
机构
[1] Hamilton Coll, Dept Comp Sci, Clinton, NY 13323 USA
[2] Univ Virginia, Dept Comp Sci, Charlottesville, VA 22904 USA
关键词
target-sensitive test suite generation; automatic fault isolation; procedure-calling convention; code generation; compiler testing and debugging;
D O I
10.1109/TSE.2003.1245304
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we present a compiler testing technique that closes the gap between existing compiler implementations and correct compilers. Using formal specifications of procedure-calling conventions, we have built a target-sensitive test suite generator that builds test cases for a specific aspect of compiler code generators: the procedure-calling sequence generator. By exercising compilers with these specification-derived target-specific test suites, our automated testing tool has exposed bugs in every compiler tested on the MIPS and one compiler on the SPARC. These compilers include some that have been in heavy use for many years. Once a fault has been detected, the system can often suggest the nature of the problem. The testing system is an invaluable tool for detecting, isolating, and correcting faults in today's compilers.
引用
收藏
页码:1031 / 1042
页数:12
相关论文
共 21 条
[1]   AN OPTIMIZATION TECHNIQUE FOR PROTOCOL CONFORMANCE TEST-GENERATION BASED ON UIO SEQUENCES AND RURAL CHINESE POSTMAN TOURS [J].
AHO, AV ;
DAHBURA, AT ;
LEE, D ;
UYAR, MU .
IEEE TRANSACTIONS ON COMMUNICATIONS, 1991, 39 (11) :1604-1615
[2]  
APPEL AW, 1996, COMMUNICATION MAY
[3]  
BAILEY MW, 1995, POPL 95 22 ACM SIGPL, P298
[4]  
BENITEZ ME, 1988, P SIGPLAN 88 C PROGR, P329
[5]  
Fraser C., 1995, A Retargetable C Compiler: Design and Implementation
[6]   A CODE GENERATION INTERFACE FOR ANSI-C [J].
FRASER, CW ;
HANSON, DR .
SOFTWARE-PRACTICE & EXPERIENCE, 1991, 21 (09) :963-988
[7]   TEST SELECTION BASED ON FINITE STATE MODELS [J].
FUJIWARA, S ;
BOCHMANN, GV ;
KHENDEK, F ;
AMALOU, M ;
GHEDAMSI, A .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (06) :591-603
[8]  
Hennie F. C., 1964, 5 ANN S SWITCH CIRC, P95
[9]  
HO RC, 1995, ACM COMP AR, P404, DOI 10.1109/ISCA.1995.524579
[10]  
Hopcroft J. E., 2007, Introduction to Automata Theory, Languages and Computation