www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/07:02:19

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.           |
---------------------------------------------------------------------

- Raw text -


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