Executable size

Just starting out? Need help? Post your questions and find answers here.
DevilDog
Enthusiast
Enthusiast
Posts: 210
Joined: Thu Aug 04, 2005 9:32 pm
Location: Houston, Tx.

Executable size

Post 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?
When all is said and done, more is said than done.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Executable size

Post by fsw »

Did you switch from 32bit to 64 bit?
User avatar
Michael Vogel
Addict
Addict
Posts: 2810
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Executable size

Post 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
Fred
Administrator
Administrator
Posts: 18249
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Executable size

Post by Fred »

This is a small size increase (20 kb) by using the 2DDrawing lib, but not a such big one !
DevilDog
Enthusiast
Enthusiast
Posts: 210
Joined: Thu Aug 04, 2005 9:32 pm
Location: Houston, Tx.

Re: Executable size

Post 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.
When all is said and done, more is said than done.
DevilDog
Enthusiast
Enthusiast
Posts: 210
Joined: Thu Aug 04, 2005 9:32 pm
Location: Houston, Tx.

Re: Executable size

Post 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.
When all is said and done, more is said than done.
DevilDog
Enthusiast
Enthusiast
Posts: 210
Joined: Thu Aug 04, 2005 9:32 pm
Location: Houston, Tx.

Re: Executable size

Post 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.
When all is said and done, more is said than done.
Post Reply