Thursday, March 31, 2011

Reference code containing every single possible construct in C

Hi all,

Chapter 6 Language of the C Standard defines all the different concepts, conversions, lexical elements, expressions, declarations, statements, blocks, external definitions and so on which are defined in the C standard.

I was wondering if there is a reference body of code anywhere which contains all these elements of the C language and which can be used to test tools, e.g. compilers, which process C code. Or am I being hopelessly naive?

Look forward to hearing from you!

Ham

From stackoverflow
  • The google phrase you want is "c compiler test suite".

    Ham : Many thanks - I had tried Google but with "C Reference Code" which didn't come up with much. I'll have a look at the GCC Test Suite, which is at least free.

0 comments:

Post a Comment