Date: Tue, 14 Jan 1997 08:44:34 +0200 (IST) From: Eli Zaretskii To: godzilla cc: djgpp AT delorie DOT com Subject: Re: DJGPP <->Linux-GCC - question In-Reply-To: <5bcktj$b10_001@tuwien.ac.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 13 Jan 1997, godzilla wrote: > i declare e.g. 10 fields (doubles) with NP components. > in DJGPP thep program compiles without any warning, but i get a segmentation > fault already if NP = 5000. > under Linux i let NP be 100000 and the program works fine [it just takes a lot > of tim to run :-) ] > if it matters: i have a Pentiom 133 with 32 MB RAM. What does go32-v2 report when run with no arguments on your DJGPP setup? Also, it would be nice if you could post a short program that attempts to allocate the above structs and outputs the maximum number of allocated structs before failure, then run it on both your platforms and post the results. Btw, it's highly probable that there's some problem with your program, since even a failed allocation shouldn't cause a segfault.