delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/12/01:02:41

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: <48l9as4o2sgmueknfcqsiqtsasvdupm684@4ax.com>
References: <MPG DOT 130d0440d417320b989680 AT news1 DOT telia DOT com> <880rb7$2368$1 AT gavrilo DOT mtu DOT ru> <anv7as49ijcg9e7mlimonlkj0lujpbdgg7 AT 4ax DOT com> <881q0c$2n9n$1 AT gavrilo DOT mtu DOT ru>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 46
X-Trace: +rvUKlmp6oQzwu36LnKCDXMVlk3LtFxLzbQwC+A/8CDvRxZec6K3iyFkeNhou5iIZp0utv3dl06/!cmF2Ctix2l++KRAEIIy43PZKGeBU+uSlFAG1hsCrJ+MasVjvvSfnYyIv87an7DB7JkRQH9HLi907!E2UmQ0k=
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: Sat, 12 Feb 2000 03:43:01 GMT
Distribution: world
Date: Sat, 12 Feb 2000 03:43:01 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 21:28:01 +0300, "Dmitry Shkarin"
<dmitry DOT shkarin AT mtu-net DOT ru> wrote:

>                         Hi, Damian!
>>1. Each DJGPP program has a mini-extender built in that goes to 32-bit
>>protected mode.  This extender takes space.
>    Other compilers have extender code too.

Extender that lives in some bloated DOS4GW.EXE file.

>>2. You forgot to strip out debugging information.
>>    strip foo.exe
>    I had done it.
>
>>3. You forgot to compress the EXE (also strips it.)
>>    http://upx.tsx.org/
>    By my experience(not so big), UPX is not very safe program

Recent versions are very stable; however, there is still
ABSOLUTELY NO WARRANTY.

>and, again, I had compared DJGPP-executables  with uncompressed
>output of other compilers.

Other compilers that produce 32-bit protected mode DOS apps that don't
need an external extender other than what is built into Windows,
DOSEMU, and DR DOS and is a mere 20K on plain DOS?

>    Just for information, small program ~2000 lines, optimized for speed:
>    BorlandC v5.01                             44KB
>    VisualC v.6.0(no extender)             44KB
>    WatcomC v10.6                            51KB
       DOS4GW.EXE    250 some K (does not work if compressed with UPX)
>    IntelC v.4.0(no extender)               40KB
>    DJGPP v2.03                                102KB
       CWSDPMI.EXE    20 some K (compressed with UPX and still works)

Also, "optimized for speed" in DJGPP bloats programs because GCC makes
programs run wicked fast by using all the dirty alignment tricks of
the i?86 trade.

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