delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/11/10:39:15

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Sizes of executables
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <anv7as49ijcg9e7mlimonlkj0lujpbdgg7@4ax.com>
References: <MPG DOT 130d0440d417320b989680 AT news1 DOT telia DOT com> <880rb7$2368$1 AT gavrilo DOT mtu DOT ru>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 30
X-Trace: /ba9QdUroulFfOfb2CEwr8tl8b3RvxOg2yiUVmnQaxMffB7J3qS/rPeT02EN/FS4KIEf89pRSYlc!SJkaFOkjJJdzNtuj1V1TFkCdIDyUc57XCThz+x6vA/lWMWfFOCNv4v0SVOGonqZGQsHXuoNmydyx!fyiYxcw=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Fri, 11 Feb 2000 12:25:51 GMT
Distribution: world
Date: Fri, 11 Feb 2000 12:25:52 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 11 Feb 2000 14:11:40 +0300, "Dmitry Shkarin"
<dmitry DOT shkarin AT mtu-net DOT ru> wrote:

>                         Hi, All!
>>Hello
>>I have some problems in keeping down the sizes of the executables when I
>>link with djgpp. There just MUST be a way to strip them down because the
>>code of the object files before linking is only a small fraction of the
>>huge exe's I get. There seem to be a whole lot of unused code in the
>>files. Does anyone have an answer to this? I am a rather newbie at djgpp
>>(I have been using turbo c++ before).
>    I'm new DGJPP user too and I have the same problem: sizes of small
>executables(~100KB, I did not ported larger apps yet) are more than twice
>larger then for other compilers. I had tried to remove exception code &
>rtti(-fno-exceptions & -fno-rtti), but
>it does not matter.
>    Why is it?

1. Each DJGPP program has a mini-extender built in that goes to 32-bit
protected mode.  This extender takes space.
2. You forgot to strip out debugging information.
    strip foo.exe
3. You forgot to compress the EXE (also strips it.)
    http://upx.tsx.org/

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

- Raw text -


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