delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/22/03:21:30

From: Damian Yerrick <DONT DOT YOU DOT DAREd_yerrick AT hotmail DOT comSEND DOT SPAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: file-sizes of executables
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <f3b4bsgfnunvequnfnk6jrdch2ieec6a9o@4ax.com>
References: <200002211104 DOT MAA21111 AT bird DOT de DOT uu DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 57
X-Trace: +4UIu4P/Lmyv/ka7Jr/GqA3Nsqo4ToZS7UfzNruGs1p1e7ybdQ2GXZpcGiKkXvWkWZqC8v2LnE2c!y9pDJKQs6tEvelBjgzT87/yza98Zh9hil2pDG5aqaGLhYJr6dH9nq1exSjs4INTzj8EmSaXPBD9u!uv+GFq8=
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: Tue, 22 Feb 2000 06:35:31 GMT
Distribution: world
Date: Tue, 22 Feb 2000 06:35:31 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 21 Feb 2000 12:02:36 +0100, Jens Luedicke <jens AT irs-net DOT com>
wrote:

>DJGPP:   102431 Bytes (fastest)
>Mingw32:   9465 Bytes
>Cygwin:  299710 Bytes (slow...)
>
>I used the following source:
>
>#include <stdio.h>
>int main()
>    {
>     int count;
>     count = 0;
>     while(count<200)
>     {
>      count++;
>      printf("%d: TEST !!! \n", count);
>     }
>    return 0;
>    }
>with friendly regards....

You forgot this from inside the bowels of libc:
int crt0_startup()
{
  goto_protected_mode();
  translate_argv();
  do_some_other_stuff();
  main(argc, argv);
  goto_real_mode();
}

void printf(void)
{
  // blah blah blah blah blah
}

char debugging_symbols[50000]; // use strip to remove these

Because everything but main() is huge, sizes of noddy programs
(hello world, Allegro bmp viewer, etc.) are irrelevant.
  http://www.pbs.org/kids/noddy/

But you can make DOS, Linux, and Win32 programs smaller with UPX.
  http://upx.tsx.org/
It'll strip debugging symbols from and compress executable files;
they can be used compressed as if they were not compressed.

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

This is McAfee VirusScan. Add these two lines to your .sig to
prevent the spread of .sig viruses.  http://www.mcafee.com/

- Raw text -


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