[Issue 2254] Size of executable almost triples

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 19 15:43:41 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=2254



--- Comment #31 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-05-19 15:39:29 PDT ---
Actually, I should add that the problem might not be with DMD's -lib option.
While it certainly is a completely different method of generating phobos.lib, I
should note that:
1) The 5K-ish blocks of zeroes are not present in phobos.lib (although we do
see a size increase in the chart I attached earlier)
2) UniLink will happily link D's .obj files + phobos.lib and create an
executable without these blocks of zeroes (and much smaller size).

Thus, the problem could very well be in OPTLINK.

So, here's your workaround for the time being: use UniLink.
Someone posted the config on the NG, I'll repost it here for convenience
(ulink.cfg):

-zsnn.lib
-LC:\dmd\windows\lib
-LC:\dm\lib
-Go

Adjust paths as necessary.

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


More information about the Digitalmars-d-bugs mailing list