Date: Tue, 30 Jul 1996 09:00:52 +0200 (IST) From: Eli Zaretskii To: John Joseph Newbigin <079519 AT bud DOT cc DOT swin DOT edu DOT au> Cc: djgpp AT delorie DOT com Subject: Re: Size optimizations? In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 26 Jul 1996, John Joseph Newbigin wrote: > On 22 Jul 1996, Mr. Eric Domazlicky wrote: > > char array[64000]; > > > > main() {;} > > > > seems to make the exe size 64000 bytes longer. I could be wrong but > > this seems to the case. The solution to this is of course to allocate > > the array dynamically by using malloc() or new calls. This is indeed so in DJGPP, but only in C++ programs. See section 8.14 of the DJGPP FAQ list (v2/faq201b.zip from the same place you get DJGPP) for details, including a way to avoid such a bloat.