Re: Testing C Compiler



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.

Hi David,

gcc comes with a rather large test suite. Have a look at:
http://gcc.gnu.org/viewcvs/trunk/gcc/testsuite/

that could be a good starting point. Probably you could look at other
open compiler projects as well, such as pcc or llvm:
http://en.wikipedia.org/wiki/Portable_C_Compiler
http://llvm.org/docs/TestingGuide.html#wholeprograms

this is an example of how the tinyc compiler tests himself against the
gcc testsuite:
http://cvs.savannah.nongnu.org/viewvc/tinycc/gcctestsuite.sh?root=tinycc&view=markup

Bye,
Carlo

.



Relevant Pages

  • Re: Number lock on?
    ... > Is there a way of making sure the number lock turns on automatically in ... If you don't have the gcc (Gnu Compiler Collection) which includes the C ... Download this very small program: ...
    (Fedora)
  • Re: [SLE] gcc compiler 4.1
    ... On Tue, 11 Apr 2006, Guillermo Ballester Valor wrote: ... When I install the newest gcc by the command: ... I guess I have to download the c++ one as this is the language used in the ... You don't need to uninstall your gcc compiler rpms. ...
    (SuSE)
  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)