February 11, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #17 from Steven Schveighoffer <schveiguy@yahoo.com> 2011-02-11 14:40:13 PST --- (In reply to comment #16) > (In reply to comment #15) > ... > > See bug 5660. > > Since bug 5660 doesn't exist (yet), I assume you mean bug 5560. Yes, thank you (wishes for comment editing...) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 14, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 Kuan Hsu <nagahiro.kyo@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nagahiro.kyo@gmail.com --- Comment #18 from Kuan Hsu <nagahiro.kyo@gmail.com> 2011-05-14 07:46:16 PDT --- (In reply to comment #17) > (In reply to comment #16) > > (In reply to comment #15) > > ... > > > See bug 5660. > > > > Since bug 5660 doesn't exist (yet), I assume you mean bug 5560. > > Yes, thank you (wishes for comment editing...) (In reply to comment #3) > (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. Using V1.030's phobos.lib instead of V1.066, the "hello world" exe size is 116KB, so the issue is all about phobos.lib Using V1.068, the original size of phobos.lib is 1545KB, trying rewrite win32.mak(using lib.exe to make phobos.lib) to get new phobos.lib is 951KB, the "hello world" exe size is 123KB -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 Heywood Floyd <soul8o8@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |soul8o8@gmail.com --- Comment #19 from Heywood Floyd <soul8o8@gmail.com> 2011-05-19 02:31:56 PDT --- Hello world on Darwin with writefln(), -release: 1.068: 272 kb 2.053: 954 kb (!) Hello world on Darwin with writefln(), -release, strip: 1.068: 252 kb 2.053: 894 kb (!) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #20 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-05-19 04:12:57 PDT --- Created an attachment (id=981) Size of phobos.lib across D1 versions -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #21 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-05-19 05:51:19 PDT --- Created an attachment (id=982) Size of "Hello, world" .exe across D1 versions -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #22 from bearophile_hugs@eml.cc 2011-05-19 09:42:59 PDT --- (In reply to comment #21) > Created an attachment (id=982) [details] > Size of "Hello, world" .exe across D1 versions What's happened in DMD 1.032 and 1.035 to cause that size increase? Is something similar happened to DMD2 too? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 Jacob Carlborg <doob@me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doob@me.com --- Comment #23 from Jacob Carlborg <doob@me.com> 2011-05-19 11:46:12 PDT --- As (In reply to comment #22) > (In reply to comment #21) > > Created an attachment (id=982) [details] [details] > > Size of "Hello, world" .exe across D1 versions > > What's happened in DMD 1.032 and 1.035 to cause that size increase? Is something similar happened to DMD2 too? As Walter always has said, compile something and look at the map file to see what's pulled into the executable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #24 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-05-19 14:23:23 PDT --- Created an attachment (id=983) Treemap of map file of D 2.053 "Hello, world" (In reply to comment #23) > As Walter always has said, compile something and look at the map file to see what's pulled into the executable. Map files are useless. Look at this treemap. Most functions in the large rectangles contain very little code. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #25 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-05-19 14:27:26 PDT --- Created an attachment (id=984) D 2.053 "Hello, world" executable opened in a file viewer Look at this instead. There are many large areas in the executable filled with zero bytes. If you compress the executables produced by a DMD version before and after this regression, the compressed sizes will differ by very little. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2011 [Issue 2254] Size of executable almost triples | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2254 --- Comment #26 from bearophile_hugs@eml.cc 2011-05-19 14:38:35 PDT --- I suggest to compile a hello world with 1.031 and 1.032 and then compare in some way their map files, and show the differences... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation