Date: Fri, 17 Apr 1998 10:51:11 +0200 (WET) From: "Andris Pavenis (LU Astro.)" To: Paul Derbyshire cc: djgpp AT delorie DOT com Subject: Re: SEVERE PGCC BUG In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 17 Apr 1998, Paul Derbyshire wrote: > Take the code below, save it as foo.cc, and, having equipped yourself with pgcc > 1.0.1 and the STL headers from gpp280b.zip, issue this: > > gcc -c foo.cc -o foo.o -O6 -mpentium -Wall -Werror -fno-implicit-templates > > The result, on a 32 meg system, with all the DOS properties in W95 set for > maximum memory, 23 megs physical free and 64 virtual, is this utter and > complete BULLSHIT! > > c:/djgpp/lang/cxx/stl_rope.h: In function `class > rope<__wchar_t,__default_alloc_template > &)': > c:/djgpp/lang/cxx/stl_rope.h:1991: virtual memory exhausted > > > What the hell is wrong with the cc1plus.exe in pgcc 1.0.1?!?!?! > There is NO WAY IN HELL it is using 64 entire megabytes and then trying to get > more! What is REALLY wrong and why doesn't cc1plus.exe issue a more accurate > and informative error message??? > > I would like to have some feedback about this and an estimate for when this > extremely serious bug will be fixed, ASAP, since a project I'm working on is > completely stalled until I have a cc1plus.exe that will faithfully compile my > code under the sole condition that the code be syntactically correct. > Perhaps You can complain Micro$oft that only 64MB are available for DOS session. Try quitting Windows and using CWSDPMI and have enough swap space on HD. Your example really eats much memory. I tested this with pgcc-1.0.2 under Linux. As I tested that the maximal amount was about 30Mb. Perhaps DJGPP version of gcc eats more... Andris