quote from: http://spaces.msn.com/members/zhz44/Blog/cns!1pvDXt8xjGfXmXn9JkAvjI4A!107.entry
测试代码很简单:
#include <iostream>
using namespace std;
int main()
{
cout <<"hello world"<<endl;
return 0;
}
…两种IDE,DEV-C++和eclipses,以及命令行,在编译速度上命令行最快,eclipses,这倒在意料之中,但产生的可执行文件确吓了我一跳,就这样一个程序,居然产生了400KB以上的文件,命令行和DEV-C++都是461KB,elipses是465KB。为了检测是否是GCC的问题,我在linux下编译同样的代码,C++产生的文件大小为13.9KB。
—————quote end—————-
It’s very interesting!
With the default settings in dev-cpp, compiled by MinGW, the executable is 463kB in size!
Using VC 6, it is 244kB with debug mode, and 64kB with release mode
With vc 7 (vs.net 2003), the two executables are 224kB and 68kB respectively.