Pelles C crashes when compiling big source code

Started by Freddy, September 11, 2007, 05:39:06 AM

Previous topic - Next topic

Freddy

Hi!
I made a little test case.
Actually my friend (which I was teaching C to) tryied to create the slowest adding program. To add numbers realy slow.
Funny idea heh.
The program he made generates the following source code. And calls gcc to compile. GCC compiles fine.
But Pelles fails hard:
Quote
C:\>cc main.c
main.c
main.c(311): fatal error #1043: Input buffer overflow.

I 7ziped the source to not use too much bandwidth.
be aware that it will decompress to 2,30MB.

Thanks!
I just thought it was the right thing to do. (submit it).


JohnF

>>I just thought it was the right thing to do. (submit it).

Maybe, but I'm not surprised it failed. I don't know what the limits are but that code must be stretching things.

John

Pelle

The (minimum) limit in C99 is 4095 characters in a logical source line, which this file exceeds. GCC may be able to handle it, but many other C compilers will not. I don't see a problem to fix here...
/Pelle