User forums > Help
Program bloat and compile speed questions.
Mr. Guest:
OK I just switched from Dev-C++ 4(with Mingw 2.95) to the latest CB build a few days ago and I've got a few questions.
1) With Dev-C++ my current project was 230k but now is at 710k. Is there any way to un-bloat it without a exe-compressor.
2) In Dev-C++ it took about 30-40 seconds to compile but CB has added about a minute on to that. Any way to change this?
I realize it has nothing to do with the IDE, it's all the compiler. I'm just thinking there's some options I have to turn on that Dev-C++ has enabled by default. I don't have any build options on right now, I tried optimizing but that caused my program to crash.
I can sort of live with the bloat, but the compile time thing is making me crazy. Thanks for any replies.
mandrav:
--- Quote ---1) With Dev-C++ my current project was 230k but now is at 710k. Is there any way to un-bloat it without a exe-compressor.
--- End quote ---
Try "strip your.exe". This will strip unnecessary symbols from it. You can also compress it with upx if you need.
--- Quote ---2) In Dev-C++ it took about 30-40 seconds to compile but CB has added about a minute on to that. Any way to change this?
--- End quote ---
I don't think so... You see, gcc-3.x is slower then 2.95 and there is nothing we can do about it. Only the gcc developers could change it, although I believe there are plenty good reasons why it's slower now, like better ANSI compliance etc.
You could, though, use Code::Blocks with your old compiler, gcc-2.95 ;)
Yiannis.
Anonymous:
OK thanks. I finally figured out how to use strip and now it's at 390k.
Mabye I should upgrade from 64mb ram if I want it to move faster :)
rickg22:
Don't forget that UPX can also compress your exe _AND_ dll's! (In fact I'm still waiting for the option to run post-build commands on the compiled executable).
heaveny38:
I'm new to this forum and I am currently switching from DevCpp to code::blocks too.
I am experiencing the same problem. Except turning on exe stripping doesn't bring back the size I was getting with DevCpp. And I was using DevCpp with the same version of the compiler too.
With devcpp I was getting something around 110kbytes with stripping enabled. With Codeblocks, I am getting around 360kbytes with strpiping enabled (added -s in linker options).
What is going on?
With MingW developer studio, the exe is even smaller, same compiler, what are the hidden options, or the ones that are not in the list taht could cuase that?
Thanks.
Navigation
[0] Message Index
[#] Next page
Go to full version