Mail Archives: djgpp/1998/06/05/13:30:28
Hi
Having just started with djgpp (C only) I thought I'd try a test
with a big 1-dimensional (long) array. Just simple stuff- initialise
in the first loop, accumulate (to double) in the second loop, print
the sum. The program works fine with gcc on a Sun, but on my old 386
I get a General Protection Fault if the array size is over about
65500 (NB, I do not mean 2^16, I mean about 65500).
For some values the program works ok and crashes on exit. For
larger values it just crashes. Have I hit some sort of limit on
array index values? I found nothing relevant in Info, though one
can never be sure with that system :)
Any thoughts? (CWSDPMI and 600KB+3MB RAM free)
Apart from that, all goes well...
Walter
Disclaimer: My employer is not responsible for this stuff.
- Raw text -