From: Brian D. <br...@de...> - 2008-07-02 19:56:02
|
Cornelius Riemenschneider wrote: > 2nd: The reason i'm writing this: I thought of gcc as an optimizing compiler. But, the source at the end of the mail compiles to a winapp >800KB. Doing the same with MSVC++ 6 results in a 60KB app. COmpiling options for g++: -O0 -Os -pedantic -w -Wall -c -fmessage-length=0 > the -O0 is caused by eclipse... This is not a fair comparison at all for C++. g++ is statically linking its C++ runtime (libstdc++) whereas MSVC++ uses a shared library MSVCP{50,60,70,71}.DLL for its C++ runtime. You will only get a fair comparison if you use shared libstdc++ (-lstdc++_s). Brian |