Page 1 of 1
Executable size
Posted: Wed Dec 02, 2009 8:44 pm
by DevilDog
Apologies if this has already been discussed, I didn't see it in my search.
I have a small program that used to compile into a 190 kb Exe, now it compiles into a 385 kb Exe.
None of the program compiler setting are checked when I compile it.
I'm using version 4.40.
Anyone know what the cause of this is?
Re: Executable size
Posted: Wed Dec 02, 2009 9:01 pm
by fsw
Did you switch from 32bit to 64 bit?
Re: Executable size
Posted: Wed Dec 02, 2009 9:07 pm
by Michael Vogel
Your size delta is much more than I can see here (Win 32 Bit), so the sizes may differ dramatically when using 64 bit or on other platforms...
So more information may help to get some ideas about the size increase: do you use certain libraries or image en/decoders etc.?
Michael
Re: Executable size
Posted: Wed Dec 02, 2009 9:19 pm
by Fred
This is a small size increase (20 kb) by using the 2DDrawing lib, but not a such big one !
Re: Executable size
Posted: Wed Dec 02, 2009 10:00 pm
by DevilDog
fsw, I'm using 32 bit 4.40.
I've removed some code I wasn't really using (in development) but that still only got it down to 352 kb.
very strange I even went as far as removing all commented out code even though it's my understanding that commented code is excluded.
Still no luck.
Re: Executable size
Posted: Wed Dec 02, 2009 10:08 pm
by DevilDog
ok, I found a backup dating back to when it compiled into a 146 kb Exe.
I'm going to do a file compare to see what the difference is as well as compile that program using 4.40 and see what size I get.
Re: Executable size
Posted: Wed Dec 02, 2009 10:35 pm
by DevilDog
OK here's what I found.
Most of the change in size was due to:
- Feature creep (compared source files with WinMerge)
- The original Exe was older than I thought
- Changes in the 2DDrawing lib (28 kb)
When I compiled the old source code with 4.30 I got an Exe file size of 185 kb.
When I compiled it with 4.40 I got 213 kb.
Good thing I keep backups and I have WinMerge and this forum to get help!
Thanks everyone.