Date: Tue, 25 Nov 1997 17:12:56 +0200 (IST) From: Eli Zaretskii To: Chris Croughton cc: djgpp AT delorie DOT com Subject: Re: Excessive exe sizes In-Reply-To: <97Nov25.150500gmt+0100.17027@internet01.amc.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 25 Nov 1997, Chris Croughton wrote: > However, if it is not actually initialised, for instance: > > int array[10000]; > > then there should be no need to put it in the executable. That's exactly what happens--in C programs. In C++, there's a potential problem with such declarations (see section 8.14 of the FAQ) which GCC resolves by including the array in the executable (there's a switch to disable this behavior). > Can this be done now? Certainly as far as the DOS executable > format is concerned. DJGPP's COFF format has a .bss section. The array in your example would be stored there.