From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Reducing image size? Date: Wed, 21 May 1997 21:43:32 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 20 Message-ID: <33836C83.E77@cs.com> References: <5lus5d$8oo AT news DOT inter DOT net DOT il> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp206.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gal-on Broner wrote: > > I compile a 14k source using gxx and receive an 200k+ image. How > can I reduce this to more normal sizes? Examine section 8.15 of the DJGPP FAQ (v2/faq210b.zip) for starters. Since you're compiling a C++ program, you should also note that the C++ libraries take up quite a bit of space themselves. Also, any static structures you define in your code will be included as part of the executable itself; using a 200K array increases your code by 200K. This is a bug in the gcc compiler; to work around it, use dynamic structures as much as possible. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------