Binary size
Claudio Bley
bley@cs.uni-magdeburg.de
Thu Feb 21 06:02:00 GMT 2002
>>>>> "Volker" == Sturm Volker <Volker.Sturm@fthw.siemens.de> writes:
Volker> Hi, I tried out cygwin on win2k and i compiled gcc3.0.3 -
Volker> apart from the prefix option - in the standard way. using
Volker> the gcc 2.95 that came with cygwin and the 3.0.3 gave me a
Volker> size of some compiled .exe of about 18 k with the old
Volker> version and 35 k with the new version. the program i
Volker> compiled for testing was:
Volker> #include <stdio.h>
Volker> int main(int argc, char** argv) { printf("Hello
Volker> world!\n"); return 0; }
Volker> I used 'gcc -o myfirst myfirst.cpp' for both compiler
Volker> versions. why is the big difference in size?
I don't know, either. But on Linux I get a difference of 0.1k of the
resulting binaries of your program, one compiled with gcc v2.95.4 the
other with gcc v3.0.3. The size is 4.8k resp. 4.9k.
Maybe you have to ask the Cygwin people?
Regards,
Claudio
More information about the Gcc-help
mailing list