Thread: Re: [Dev-C++] Executable size is huge
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: <age...@co...> - 2003-12-30 22:07:03
|
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 |
From: jo m. <non...@ho...> - 2004-01-02 15:22:55
|
hello, It seems there are a lot of "pure C" fans here. However, I think the problem is not C++ itself. If you are dealing with complex and serious projects, you need the high-level facilities, and I think it is better to rely on the language itself than on "customized" libraries that are so often buggy, non-portable and badly implemented. Besides, if you are learning, your time is better invested if you learn generalities than learning how to use a particular library. The actual problem is the compiler. Yes, Mingw is free, but for sure it is not the best C++ compiler. Still a lot of work to do. Sorry for bad English. Bye. >From: Maya <Esc...@ne...> >CC: DevCpp User Group <dev...@li...> >Subject: Re: [Dev-C++] Executable size is huge >Date: Wed, 31 Dec 2003 20:37:35 -0800 > >Get a hold of you, man!! >Remember that as soon as you include <iostream> or <string> or any of the >C++ libraries, you are loading a whole lot of huge templates. The C++ >library is not what it used to be before the templetization. If you think >that the small program you have writing is to big for your machine to >handle, why not use the 'C' library. There is nothing wrong with the 'C' >language, it is just another methodology. > >Happy new year every one, have one, have two, have three, but leave the car >keys at home. > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: <or...@vp...> - 2004-01-03 01:26:44
|
jo mateix wrote: > Yes, Mingw is free, but for sure it is not the best C++ > compiler. Still a lot of work to do. Well, it depends. If you want the *most* C++ standards-comliant compiler today, it is GCC (MinGW). I think standards-compliance is far ahead of minor speed improvement or smaller exe files. And I doubt there is a lot of work to do, GCC 3 only needs minor improvements. And if you (I mean the original author of exe size) still don't like large exe's, then there is UPX. With stripping, then compressing with UPX, it got me a 64 KB exe, that is a simple C++ program. And if that is still too big, then you'd better start learning machine code. -- Greetings, Balázs |
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 > |
From: Maya <Esc...@ne...> - 2004-01-01 01:29:49
|
Get a hold of you, man!! Remember that as soon as you include <iostream> or <string> or any of the C++ libraries, you are loading a whole lot of huge templates. The C++ library is not what it used to be before the templetization. If you think that the small program you have writing is to big for your machine to handle, why not use the 'C' library. There is nothing wrong with the 'C' language, it is just another methodology. Happy new year every one, have one, have two, have three, but leave the car keys at home. 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 >> >> > > >------------------------------------------------------- >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 > > -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |