delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/31/23:15:16

Message-ID: <B5E044AF4430D311B24D0060089CD8B101F01780@hydmail01.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: DJGPP EXE file size vs Linux
Date: Wed, 1 Nov 2000 09:25:48 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

The reason is simple. DJGPP adds debug info by default which
makes a program appear really huge at times. Run "strip" over that
at the size should reduce. Secondly, DJGPP programs need to
add a stub. That again increases the size. Besides, DJGPP generates
COFF while linux generates ELF. The libraries are different so that again
increases the size.

Prashant

On Wednesday, November 01, 2000 8:24 AM, Ron House [SMTP:house AT usq DOT edu DOT au]
wrote:
| Hi all, I have an app that was originally C, but later I included
| classes and made it C++. Since then the file size has blown out
| hugely,
| yet I have only moderate use of templates (although I do use vector
| quite a bit) and don't use any C++ I-O, sticking with stdio.h. But
| most
| puzzling, the stripped sizes of the exe under Linux and DJGPP are
| vastly
| different: 950K vs 1.9Mb. Supposedly this is the same compiler
| underneath, if I understand correctly. (These sizes should also be
| compared with the size of the original program, around 300K and
| maybe
| 25% less source code.)
| 
| -- 
| Ron House     house AT usq DOT edu DOT au
|               http://www.sci.usq.edu.au/staff/house
| "There are ethics - and then there's the greater good."
|    - Sigrid Thornton as Laura Gibson (Seachange).


--------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. 
If you received this in error, please contact the sender and delete the materialfrom any computer.
--------------------------------------------------------------------------------

- Raw text -


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