delorie.com/archives/browse.cgi | search |
From: | "Sean Pajot" <deathshead66 AT notmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <36F1CA96 DOT 28A0CD3 AT home DOT com> |
Subject: | Re: Large compile files cause fault |
Lines: | 29 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.0810.800 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.0810.800 |
Message-ID: | <bVsI2.6376$G26.574@tundra.ops.attcanada.net> |
Date: | Fri, 19 Mar 1999 14:10:15 GMT |
NNTP-Posting-Host: | 142.194.222.11 |
X-Trace: | tundra.ops.attcanada.net 921852615 142.194.222.11 (Fri, 19 Mar 1999 14:10:15 GMT) |
NNTP-Posting-Date: | Fri, 19 Mar 1999 14:10:15 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Yes, it is a known problem. It ususally happens when you compile with optimizations. If you want to enlarged the stack of the C/C++ compiles, use stubedit. Find the file called CC1.EXE for C or CC1PLUS.EXE for C++. Stubedit it and change the stack size (it's not too uncommon to set it over a megabyte). If any more than 4 megabytes doesn't seem to help, then you may have to break your source code into several smaller files. -- Sean To reply, change "@notmail.com" to "@hotmail.com" Edward F. Sowell <sowelled AT home DOT com> wrote in message news:36F1CA96 DOT 28A0CD3 AT home DOT com... >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? > >Is this a known problem? > >Ed Sowell >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |