exe file size

Bill Baxter wbaxter at gmail.com
Thu Nov 13 22:28:42 PST 2008


On Fri, Nov 14, 2008 at 2:38 PM, John Reimer <terminal.node at gmail.com> wrote:
> Hello huurd,
>
>> I use The -O -release -inline , the size si 20M, there is no -g.
>>
>
>
> Ouch. :(   I know dwt + dwtx pulls in a lot of modules.  I'm afraid this has
> been a niggling bother to me too, since I help port dwt, but I know there is
> no simple solution for this.
>
> BTW, is this on Linux or windows?  If you are using linux, try using the
> "strip" command on the binary.  It should make it much smaller.
>
> If not, well... the emphasis on dwt development right now is stability,
> completion (as in porting), and close tracking of the SWT version.  Finding
> ways to make it smaller may be in the future (I've suggested such in prior
> posts), but doing so will be inextricably tied to the
> compiler/linker/language technology and what these are able to do to reduce
> the footprint.  If these don't change somehow, there's little that can be
> done, other than make the oh-so annoying statement "Well, hey! These days,
> memory is so cheap and computers are so powerful that it really doesn't
> matter anymore" ;-).  Somehow, that isn't very convincing, I know :-)
> Upx is the best option for now, I guess. 800 kb isn't all that bad,
> actually.

I think the build time of dwt apps is a much bigger issue right now
than the size of exes.  The size of exes can be reduced using hacks
like upx, but there is no fix for the long build times as far as I
know.

--bb



More information about the Digitalmars-d mailing list