Jump to page: 1 24  
Page
Thread overview
[Issue 2254] New: Size of executable almost triples
Jul 30, 2008
d-bugmail
Jul 30, 2008
Koroskin Denis
Aug 05, 2008
d-bugmail
Aug 07, 2008
d-bugmail
Aug 07, 2008
d-bugmail
Aug 13, 2008
d-bugmail
Aug 13, 2008
d-bugmail
Aug 14, 2008
d-bugmail
Aug 14, 2008
Aarti_pl
Aug 14, 2008
d-bugmail
Feb 16, 2009
d-bugmail
Sep 12, 2009
Heinz Traub
Nov 22, 2009
torhu@yahoo.com
Nov 23, 2009
Don
Jan 28, 2010
Stefan Liebig
Sep 19, 2010
Don
Oct 04, 2010
Heinz Traub
Oct 05, 2010
nfxjfg@gmail.com
Feb 11, 2011
Justin C Calvarese
May 14, 2011
Kuan Hsu
May 19, 2011
Heywood Floyd
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 19, 2011
Jacob Carlborg
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 19, 2011
Vladimir Panteleev
May 20, 2011
Jacob Carlborg
Feb 01, 2012
Walter Bright
Feb 01, 2012
Vladimir Panteleev
Apr 16, 2012
Denis
Apr 16, 2012
Walter Bright
July 30, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254

           Summary: Size of executable almost triples
           Product: D
           Version: 1.032
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: StefanLiebig@web.de


I recently had to fix a little bug in an D application (win32). I thought that
it would also be a good idea to upgrade to the most current version of the D
compiler.
When upgrading to 1.033 from 1.025 the executable size almost tripled from 227
kb to 603 kb! After building with all version from 1.025 up I found that this
phenomenon occurs when switching from 1.031 to 1.032. I did not change the
compiler options (-release, -o) when building with several dmd versions.
I saw the many changes/bugfixes from 1.031 to 1.032. However, can that explain
this behaviour?


-- 

July 30, 2008
On Wed, 30 Jul 2008 10:21:57 +0400, <d-bugmail@puremagic.com> wrote:

> I saw the many changes/bugfixes from 1.031 to 1.032. However, can that explain
> this behaviour?
>
>

Yes, every fixed bug increases your executable size by 5% <g>
August 05, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254


torhu@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torhu@yahoo.com




------- Comment #1 from torhu@yahoo.com  2008-08-05 14:48 -------
1.032 is the first version where phobos.lib is built using the new -lib switch.
 That seems the likely culprit.

http://www.dsource.org/projects/phobos/changeset/811

I tried building hello world tests with dmd 1.031 and 1.032 to see the size differences:

Hello world with writefln (import std.stdio):
1.031: 114.4 k
1.032: 269.5 k

Hello world with printf (no imports):
1.031: 78.0 k
1.032: 121.5 k


So something bad definitely happened between 1.031 and 1.032.  Now, if someone could be bothered to try building phobos 1.032 without the -lib switch and compare, that would be great.


-- 

August 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254





------- Comment #2 from lio+bugzilla@lunesu.com  2008-08-06 19:43 -------
Comparing the two map files shows the difference comes from the first line:
 0002:00000000 000193FBH  _TEXT                  CODE 32-bit
vs
 0002:00000000 0000CC9BH  _TEXT                  CODE 32-bit


-- 

August 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254





------- Comment #3 from lio+bugzilla@lunesu.com  2008-08-06 20:17 -------
(In reply to comment #1)
> So something bad definitely happened between 1.031 and 1.032.  Now, if someone could be bothered to try building phobos 1.032 without the -lib switch and compare, that would be great.

Yep, that did the trick. I've used the v1.031 makefile to build phobos from v1.032, using v1.032. Both phobos.lib and the built .exe file have the size from v1.031. It's definately the -lib switch that's causing the bloat.


-- 

August 13, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254





------- Comment #4 from StefanLiebig@web.de  2008-08-13 06:34 -------
I rebuilt my application with DMD 1.034 (where it should have been fixed) and
it has the same effect as before. It still triples. Can someone (maybe
torhu@yahoo.com) check that.


-- 

August 13, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254





------- Comment #5 from spam@extrawurst.org  2008-08-13 07:24 -------
i can confirm that it even grew again from 2.017 to 2.018


-- 

August 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #6 from bugzilla@digitalmars.com  2008-08-14 03:02 -------
Fixed dmd 1.034 and 2.018


-- 

August 14, 2008
d-bugmail@puremagic.com pisze:
> http://d.puremagic.com/issues/show_bug.cgi?id=2254
> 
> 
> bugzilla@digitalmars.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
> 
> 
> 
> 
> ------- Comment #6 from bugzilla@digitalmars.com  2008-08-14 03:02 -------
> Fixed dmd 1.034 and 2.018
> 
> 


In which way is that fixed while there are reports in this ticked, after release of 2.018, that it's not fixed?

Probably you missed these comments...

BR
Marcin Kuszczak
(aarti_pl)
August 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2254


torhu@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #7 from torhu@yahoo.com  2008-08-14 14:22 -------
I tried my hello world tests from comment #1 with dmd 1.034.  The file sizes are the same or slightly larger.

I'm not sure what fix Walter has made, but the original issue is still there.


-- 

« First   ‹ Prev
1 2 3 4