www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11267] New: Resulting executable sizes varies a lot

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267

           Summary: Resulting executable sizes varies a lot
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: g.sayol yahoo.es


--- Comment #0 from Jordi Sayol <g.sayol yahoo.es> 2013-10-15 00:40:09 PDT ---
On Debian stable (7.1), a simple "Hello World" program dramatically varies the
executable size depending on compiler version and linking type:


DMD v2.063.2 (32-bit)
 static: 672 KB
 shared:  91 KB

DMD v2.064 (32-bit)
 static: 1164 KB
 shared:   42 KB


DMD v2.063.2 (64-bit)
 static: 789 KB
 shared: 111 KB

DMD v2.064 (64-bit)
 static: 1348 KB
 shared:   51 KB

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2013-10-15
01:17:36 PDT ---
On Windows 32 bit, I get about a 120K increase in size, and this is pretty much
entirely due to the increase in size of the tables in std.internal.uni_tab.d
(from looking at the .map file).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267



--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2013-10-15
01:34:28 PDT ---
Jordi, did you run strip on those executables?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267



--- Comment #3 from Jordi Sayol <g.sayol yahoo.es> 2013-10-15 02:28:35 PDT ---
(In reply to comment #2)
 Jordi, did you run strip on those executables?
No. Here I attach the results of "$ strip --strip-unneeded hello.d": DMD v2.063.2 (32-bit) stripped static: 672 KB -> 484 KB shared: 91 KB -> 64 KB DMD v2.064 (32-bit) static: 1164 KB -> 795 KB shared: 42 KB -> 28 KB DMD v2.063.2 (64-bit) static: 789 KB -> 567 KB shared: 111 KB -> 81 KB DMD v2.064 (64-bit) static: 1348 KB -> 921 KB shared: 51 KB -> 35 KB -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267



--- Comment #4 from Jordi Sayol <g.sayol yahoo.es> 2013-10-18 00:02:57 PDT ---
DMD v2.064 beta2 fix it:

(32-bit)
 static:  481 KB
 shared:   41 KB

(64-bit)
 static:  590 KB
 shared:   48 KB

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 18 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11267


Jordi Sayol <g.sayol yahoo.es> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 18 2013