Message-ID: From: Prashant Ramachandra To: "'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) Content-Type: text/plain 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. --------------------------------------------------------------------------------