www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/25/20:45:27

From: tomw AT tsys DOT demon DOT co DOT uk (Tom Wheeley)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why is compiled a lot bigger than src?
Date: Tue, 25 Mar 97 21:14:07 GMT
Organization: Adventures and Diving
Message-ID: <859324447snz@tsys.demon.co.uk>
References: <199703242136 DOT PAA05837 AT mail DOT sockets DOT net>
Reply-To: tw104 AT york DOT ac DOT uk
Lines: 57
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <199703242136 DOT PAA05837 AT mail DOT sockets DOT net>
           cwhizard AT sockets DOT net "Anthony Q. Bachler, BAS" writes:

> The increase in size is not proportional.  It is merely due to the amount
> of code that you must have to support protected mode.  i also think that
> DJGPP includes all the code from header file declarations instead of just
> what you need.  DJGPP is far from perfect as I too have found out. 
> Remember, Turbo C (whence I too emigrated) is a commercial product.  People
> got paid to do nothing but sit around and work on it all day to make it
> better.  DJGPP is a free product.  People work on it in their spare time. 
> In the long run DJGPP will be a better product because of this, but until
> then it still needs lots of work.  If I had 12 hours a day to work on it, I
> might be able to get it up to Turbo C's level of performance in a year, but
> I don't.  It will get there though.  

Let me draw a graph of my experiences of EXE size with Turbo C and DJGPP:

   |            t   d
   |          t d
   |        x                     t = Turbo C
 E |    d t                       d = djgpp
 X |d   t                         x = crossover point
 E |  t
   |t
   +-------------------
          Source Size

Hello world is much larger under DJGPP than Turbo C (IIRC, anyway), but
DJGPP created smaller exe's for increasing amounts of code.

Did you remember to strip your executables?

The reason for the larger starting base for djgpp is the number of useful
things it does on program startup, like globbing, large command line passing
(I suppose), response files, and nifty environment settings in djgpp.env

You can remove these features if you want.

> C code is like assholes, everyone's stinks but your own.
> Looking at C code is like looking at your bedroom, a 
>   complete mess to everone else, but you can tell them 
>   where every little thing is.
> C code is like Ex-Lax, great when it works but a pain 
>   in the ass when it doesn't.
> Explaining why C is better than Pascal is like explaining 
>   why peanut butter is better than toe jam.
> Explaining why Assembler is better than anything is like 
>   explaining why being deaf is better than listening to 
>   'The artist formerly known as Prince'.

This .sig is too long, and not at all funny.  You try seeing it several
times in a row.  Oh, and an `ass' is a cross between a donkey and a horse,
not a body part.

-- 
:sb)

- Raw text -


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