NO

Author Topic: Pelles C crashes when compiling big source code  (Read 2656 times)

Freddy

  • Guest
Pelles C crashes when compiling big source code
« 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).


JohnF

  • Guest
Re: Pelles C crashes when compiling big source code
« Reply #1 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Pelles C crashes when compiling big source code
« Reply #2 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...
/Pelle