Message-Id: <199903191924.OAA04302@delorie.com> Comments: Authenticated sender is From: "George Foot" To: "Edward F. Sowell" Date: Fri, 19 Mar 1999 19:22:27 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Large compile files cause fault CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) Reply-To: djgpp AT delorie DOT com On 19 Mar 99 at 3:50, Edward F. Sowell wrote: > I have experienced GPFs when trying to compile files > 1Mb. There is > no messgae from g++; Windows just reports the GPF and > the DOS box it is running in is killed. > > I suspect it's running out of stack/heap. Is there a switch > like th -Zm switch in VC++ that tells it to use a bigger one? You might need to enlarge the compiler's stack size. The compiler is cc1.exe; you use stubedit to change various settings. See section 6.6 of the FAQ. Do you really need to be compiling such large files? Isn't it possible to split them into smaller pieces? > Is this a known problem? Perhaps; see chapter 6 of the FAQ. I looked briefly but didn't see any reference to GPFs though. -- George