delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/30/02:12:24

Date: Tue, 30 Jul 1996 09:00:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.OSF.3.91.960726084838.13558B-100000@bud.cc.swin.edu.au>
Message-Id: <Pine.SUN.3.91.960730085828.28847G-100000@is>
Mime-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019