PROGRAMMING > C / C++ /C#

Visual c++ code optimization.

(1/4) > >>

Blacksheep8Bit:


So i was wondering what are the best configurations for a visual c++ 2010 project in order to make a small exe, since we are talking about demos i thought that i would need special kinds of configurations.

I Already tried KKRUNCHY but i think i can make it even smaller by configuring visual c++ and even more smaller using KKRUNCHY after. I Am currently using the standard release settings.

LittleWhite:
Hello,

Someone gave me this link -> http://www.catch22.net/tuts/minexe a long time ago ... I hope the article is still in place :s
I guess it is this one -> http://www.catch22.net/tuts/reducing-executable-size

Knurz:
Hi!

Have a look at this page: http://wiki.wxwidgets.org/Reducing_Executable_Size there are some nice flags documentated which should reduce the Exe Size.

I tried to build a tiny executable with VS2010 but I didn't really came close to a striped GCC's executable.

KKRUNCHY is nice but has some limits. I used the beroexepacker which performed really nice (decrunching is much faster) and seems to be worked on till now: http://bero.0ok.de/blog/projects/beroexepacker/

If you do C Code you can try CodeBlock - which is a very nice IDE, and MinGW GCC for compiling (I'm from Unix-World, so a Windowsuser maybe confused by the options/MAKEFILE). After linking you can use the "strip" commando to build a really tiny executable, and crunch this with the Beroexepacker.

cu.

longwang:
Hi!

I like to use UPX:
http://upx.sourceforge.net/

Makes the executables really small. Since I never tried another tool I can't tell which packer performs best. I guess you have to try them...
hc

Jim:
crinkler is pretty good - it replaces the VC linker.  Has some limitation when used with C++ and likes to start with small exes.
Jim

Navigation

[0] Message Index

[#] Next page

Go to full version