Testing C Compiler

"camille@bluegrass.net" <camille@bluegrass.net>
Sun, 30 Mar 2008 18:54:38 -0400

          From comp.compilers

Related articles
Testing C Compiler camille@bluegrass.net (camille@bluegrass.net) (2008-03-30)
Re: Testing C Compiler kevin.phillips83@yahoo.com (kphillips) (2008-03-31)
Re: Testing C Compiler carlo.salinari@gmail.com (Carlo Salinari) (2008-03-31)
Re: Testing C Compiler ArarghMail803@Arargh.com (2008-03-31)
Re: Testing C and other Compilers bobduff@shell01.TheWorld.com (Robert A Duff) (2008-04-01)
Re: Testing C Compiler bfranke@inf.ed.ac.uk (=?ISO-8859-1?Q?Bj=F6rn_Franke?=) (2008-04-04)
Re: Testing C Compiler mayan@bestweb.net (Mayan Moudgill) (2008-04-05)
| List of all articles for this month |
From: "camille@bluegrass.net" <camille@bluegrass.net>
Newsgroups: comp.compilers
Date: Sun, 30 Mar 2008 18:54:38 -0400
Organization: news.bluegrass.net
Keywords: C, testing, question
Posted-Date: 30 Mar 2008 23:41:19 EDT

hi all:


I've been working on a retargetable optimizing C compiler (C89/C99) in
my spare time the last year and a half or so, because that is kind of
fun. There is a little more work to do but it is coming along fine.
I've had it generating working code for a couple of significant
programs on the x86 while I tested the parser, basic optimizations and
code gen. My problem now is down the road I am interested in seeing
just how well it works. There are a variety of areas I'm interested
in:


1) how conformant is the parser?
2) how conformant is the RTL? (the RTL was actually written as part of
an earlier compiler project)
3) how accurate are the optimizations? I'd like to find the bugs.
4) how good is the performance of generated code?


This is a personal project but I'm kinda nitpicky, I like to get the
details right. Are there test suites that would cover all these
areas? Any one test suite that covers it all or am I looking at
various test suites for different things? Anything open source or do
I have to go to the test-suite vendors? If I have to go to the
vendors can anyone give me a ballpark of the costs I'm looking at?


I'm trying to find out if I can find standardized tests that will
help, or if I'm just going to have to download every program I can
find and compile it to see what happens.


Thanks,
David


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.