Pelles C forum

Pelles C => Bug reports => Topic started by: Freddy on September 11, 2007, 05:39:06 AM

Title: Pelles C crashes when compiling big source code
Post by: Freddy on September 11, 2007, 05:39:06 AM
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).

Title: Re: Pelles C crashes when compiling big source code
Post by: JohnF on September 11, 2007, 12:14:14 PM
>>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
Title: Re: Pelles C crashes when compiling big source code
Post by: Pelle on October 28, 2007, 11:27:55 PM
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...