delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/31/08:52:06

From: firewind <firewind AT metroid DOT dyn DOT ml DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bloated exe files
Date: 31 Aug 1997 06:08:28 GMT
Organization: Netcom
Lines: 28
Message-ID: <5ub1os$8aj@dfw-ixnews8.ix.netcom.com>
References: <19970831013800 DOT VAA25889 AT ladder01 DOT news DOT aol DOT com>
NNTP-Posting-Host: elp-tx2-13.ix.netcom.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Egg brains <eggbrains AT aol DOT com> wrote:
> i have 25-30kb of code and my exe is 250k !!!
> is this because of lib's i've linked? and i only linked standard c/c++
> libs...  is their a way i could fource djgpp to only include the 'critical'
> code?  if not, does the source for the lib's come with djgpp's own source?

Actually, DJGPP has sensed you haven't read the FAQ and inserted this extra
bloat as punishment. :)

Seriously, this is discussed in the FAQ and has been discussed ad naseum
here. A few quick points:

1) It has very little to do with libraries. The GNU linker is very smart and
   will only link with needed object files inside the libraries.
2) DJGPP forces some code (such as wildcard globbing and environment file
   loading) to always be included. Check the FAQ to see how to get rid of
   this.
3) gcc includes symbol and debugging information by default. Invoke gcc with
   the '-s' switch or run 'strip' on the resulting executable to get rid of
   this information.
4) No, the source for libc and gcc are kept seperate.

late\fw

-- 
[- 				 firewind	                            -]
[-   email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work)  -]
[- 	    "You're just jealous because the voices talk to -me-."          -]

- Raw text -


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