I compiled a simple program to show or hide a window and the .exe file is 112kb, which seems a little big. How can I make it smaller? The "optimize for size" option in the borland free compiler 5.5 doesn't work.
Printable View
I compiled a simple program to show or hide a window and the .exe file is 112kb, which seems a little big. How can I make it smaller? The "optimize for size" option in the borland free compiler 5.5 doesn't work.
http://upx.sourceforge.net/
chilibean
Compile your application in release mode.
Z.
I'm not using VC++, i am using borland C++ compiler.
You should still be able to compile in a Release Mode. I cant believe that Borland could be that stupid, and not make it easy to remove all debugging symbols.
Z.
Try these tips here:
http://pr0n.newhackcity.net/~sd/tinyexe.html
These are for VC++ but some of them can work on any compiler:)
If it doesn't use any C++ specific features such as classes or templates, then why not modify it to compile as C code? That will REALLY make a difference.
Also get stripreloc from www.jrsoftware.org