Re: [Dev-C++] Executable size is huge
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Jack C. <jac...@ya...> - 2003-12-30 00:23:40
|
So then C++ compiled files will be 10x bigger than C compiled ones? Man I made a program that draws 3D objects with OpenGL and graphical interface with GTK. It's C code and the exe is only 34KB. I'm wondering what the file size will be if I do it in C++... Does anyone think the developers of Dev-C++ will change it? It's very scary. Jack --- OROSZI_Balázs <or...@vp...> wrote: > Kevin Sopp wrote: > > using a simple Hello World program and the appropriate compiler > flags > > (-O3) and without any debug info the executable is about 440KB in > size. > > The compiler doesn't seem to be doing any dead code removal. I > remember > > I had this problem a long time ago when I used cygwin but I don't > > remember my solution. > > This is not a problem, and there is no real "solution" to it. > > One alternate "solution" might be to use simple C code for a Hello > World > program. That will get you a 20 KB exe :) > > However, if you wish to reduce the size of your exe, use UPX. > http://upx.sf.net > > The size growth for C++ is because stdc++ is linked statically into > the > exe, however when using simple C code, the exe is linked dynamically > to > Windows DLLs (like msvcrt.dll, etc.) > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > 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 ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |