exe size increased with dwt2

yidabu dyuyan.spam at gmail.com
Sun Mar 29 23:46:09 PDT 2009

On Sun, 29 Mar 2009 19:03:03 +0200
torhu <no at spam.invalid> wrote:

> id you build both in the same way?  I assume you know that if you build 
> the library with dsss with oneatatime=yes, your executable will be 
> smaller then if you use the rake script?  If I recall correctly, the 
> rake script hands all files to dmd at once.

I build dwt.lib by dsss, oneatatime=yes
build dwt2 by Rake

> Assuming you built both the same way, there's an easy way of checking 
> what's causing the size difference.  You can build your app directly 
> with dsss, with oneatatime=yes.  Don't build the lib separately first, 
> let dsss do it all in one operation.  Or you could try with 
> oneatatime=no to speed it up, but the object file sizes won't be right then.

I buil app by dmd directly with same parameters.

> Do that with the same test app, using both dwt-win and dwt2.  Then you 
> can compare the object files that were created.  See if there are more 
> files used with dwt2, if they are bigger, etc.
> Of course, you could look at the .map file created when linking with 
> /detailedmap, but that's harder to figure out.  I've never bothered.


yidabu <yidabu.spam at gmail.com>

D 语言-中文(D Chinese):

More information about the Digitalmars-d-dwt mailing list