This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I build some program (source.cpp) using 3 different compilers.I attained these results myself, but then decided to produce a C++ executable
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 26046Can 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
VC5: cl source.cpp
BCC5: bcc32 source.cpp.The program use the following headers:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
My guess: C++ library is always being linked into your program. I might
be
wrong of course.
Cheers
-- -------------------------------------------------------------| | Remember Scotch: 'THERE CAN BE ONLY ONE' | -------------------------------------------------------------| | Daniel J. Rodriksson | C-220,ETSI Telecomunicaciones | | djr@dit.upm.es | Avda Paraninfo S/N | | http://www.dit.upm.es/~djr | 28040 Madrid | | +34-91-3367366 + ext 469 | SPAIN | |------------------------------------------------------------|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |