[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-dev] Systems without variadic functions?, was Re: arthur's bugs



On Sat, Apr 30, 2011 at 12:05 AM, Pascal Cuoq <pascal.cuoq@gmail.com> wrote:
>
> Feature wish: the current use of printf() in csmith-generated programs
> is "monomorphic": it is always passed an unsigned int.
> This is very convenient for systems that do not handle
> variadic functions very well, because they can pretend that
> printf takes a char* and an unsigned int as argument.

Just for my own edification: What's an example of a system that
doesn't "handle variadic functions very well"?  I assume you're
talking about some embedded platform, but beyond that I can't guess.
I would have thought that any C compiler would pretty much *need* to
implement variadic functions; if a compiler is missing that part of
the C standard, then mightn't it also be missing a bunch of other
stuff that Csmith tries to test?

Thanks,
-Arthur