delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/26/23:21:38

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Why MINGW32-EGCC compiled programs so big in size?
26 Jun 1998 23:21:38 -0700 :
Message-ID: <01BDA143.7CEEFDC0.cygnus.gnu-win32@sos>
To: "\"GNU-Win32\"" <gnu-win32 AT cygnus DOT com>,
"'Andrey I. Iliev'"
<andrei-i AT akdi DOT ru>

Andrey I. Iliev wrote:
> <<File: ATT00000.txt>>
> I build some program (source.cpp) using 3 different compilers. 
> Here is file size of executables : 
> 1) VC5                                68096
> 2) BCC 5.02                      69632
> 3) Cygnus b19                   23746
> 4) MINGW32-EGCC      176149 !!!
> 5) MINGW32-GCC           26046
> 
> Can anybody explain why  MINGW32-EGCC produce so big executable?
>  I feel it's probably because MINGW32-EGCC  link statically some libs?
> What libs and why?
> 
> All executables has been compiled with default options: 
> GNU GCC: gcc -o source.exe source.cpp

Try "gcc -s -o source.exe source.cpp"

What sizes will you have?

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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