Re: Testing of a compiler

Ben Elliston <bje@redhat.com>
23 Feb 2001 00:06:27 -0500

          From comp.compilers

Related articles
Testing of a compiler sandeep_pendharkar@yahoo.com (2000-06-14)
Re: Testing of a compiler bje@redhat.com (Ben Elliston) (2001-02-23)
| List of all articles for this month |

From: Ben Elliston <bje@redhat.com>
Newsgroups: comp.compilers
Date: 23 Feb 2001 00:06:27 -0500
Organization: Red Hat Inc.
References: 00-06-053
Keywords: testing
Posted-Date: 23 Feb 2001 00:06:27 EST

>>>>> "sandeep" == sandeep pendharkar <sandeep_pendharkar@yahoo.com> writes:


    sandeep> I'm currently involved in writing a C Cross-Compiler. note that i'm a
    sandeep> novice in this area and one of my assignments is coming up with a
    sandeep> strategy for testing the cross-compiler.


There are a number of testing strategies:


* test that correct C programs are compiled correctly.
* test that incorrect C programs are diagnosed correctly.
* test that correct C programs will compile and run, producing
a result at their termination that can be tested for.
* test that old bugs, once fixed, do not reappear.


The GCC testsuite would be an excellent starting point for testing
your cross-compiler, as the thousands of test cases have already been written.


Conformance testsuites also exist, although they do not come cheaply.


Ben


Post a followup to this message

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