Re: [Dev-C++] Executable size is huge
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Michael C U. <mu...@cb...> - 2003-12-30 22:56:16
|
It must be dynamically linking then. Because otherwise there is no possible way you can get the exe that small when using the standard C++ library. That's probably a safe bet to make on Linux because you can be reasonably sure that the GCC standard C++ libraries will be available on any Linux distribution. You can't safely make that assumption in Windows. Hello World in Borland's C++ compiler using the standard C++ library on Windows produces a "hello world" executable that is a little over 100K in size. Mingw I think will get it down to a little over 200K after you use strip. On Tue, 30 Dec 2003 age...@co... wrote: > This problem isn't on Linux, my .exes are around 12kb are so for a simple program that does multiplication. > > -- > ~~Scott Simontis~~ > Programmer > > On Mon, 29 Dec 2003, Jack Chen wrote: > > > > > Does anyone think the developers of Dev-C++ will change it? It's very > > > scary. > > > > This isn't really unique to Mingw32. In fact, you will hear a lot of C > > fans argue that one of the reasons they don't like C++ is because the > > Standard C++ library is so bloated, and does produce such large binaries. > > > > Now the GCC compiler is not known for being the most efficient compiler in > > the world, or for doing a really good job of optimizing code, and the > > problem is exagerated in GCC over some other compilers. But the problem > > does exist in other compilers as well. > > > > But I think what you need to ask is does it matter? GCC is free, and it > > does optimize well enough for all but the most demanding tasks. The C++ > > Standard Library might be bloated, but is a 400K executable really a > > problem when the average computer today has 256Mb of RAM? > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |