Message-Id: <199703242136.PAA05837@mail.sockets.net> Reply-To: From: "Anthony Q. Bachler, BAS" To: "gecko" , Subject: Re: Why is compiled a lot bigger than src? Date: Mon, 24 Mar 1997 15:32:30 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01BC3868.9612CCE0" Content-Transfer-Encoding: 7bit This is a multi-part message in MIME format. ------=_NextPart_000_01BC3868.9612CCE0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. ::-) ---------------------------------------------------------------------------- --- 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'. ---------- > From: gecko > To: djgpp AT delorie DOT com > Subject: Why is compiled a lot bigger than src? > Date: Monday, March 24, 1997 08:43 > > When I was using TC++ I had a src that was only 14k and would compile to > 22k, thru DJGPP it is compiling to 114k. I used gcc -o c.exe c.src and > tried the optimizations but nothing helps...I might be naive or somehting, > ok thank you > ------=_NextPart_000_01BC3868.9612CCE0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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. =  
::-)

---------------------------------------------------= ----------------------------
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'.

----------
> From: gecko <gecko AT shell1 DOT tiac DOT net>
> To: djgpp AT delorie DOT com
> Subject: Why is compiled a lot bigger than = src?
> Date: Monday, March 24, 1997 08:43
>
> When I = was using TC++ I had a src that was only 14k and would compile = to
> 22k, thru DJGPP it is compiling to 114k. I used gcc -o c.exe = c.src and
> tried the optimizations but nothing helps...I might be = naive or somehting,
> ok thank you
>

------=_NextPart_000_01BC3868.9612CCE0--