[Issue 12440] Implement whole-program analysis
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 23 02:50:43 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12440
--- Comment #6 from Marco Leise <Marco.Leise at gmx.de> 2014-03-23 02:48:39 PDT ---
(In reply to comment #5)
> With the current state of D shared libraries, how many of those do we have
> anyway?
Close to none I guess.
> If a change improves performance for 99% of code and breaks 1%, I think that's
> a worthwhile change.
The argument being? The state of shared libraries will continue to improve
steadily as it did in the past. -wholeprogram (as described above) will cause
issues once D gets there and the 1% deliberate silent breakage increases.
At the minimum there would have to be a runtime error on loading plugins into a
program compiled with -wholeprogram. And to pick up a suggestion on the forum
by Ola, there could be a mechanism in place to tell the compiler which classes
you need excluded from devirtualization, so you can use -wholeprogram together
with plugins.
> We have a precedent (the -allinst switch and related
> changes).
I didn't follow the discussion around -allinst so I cannot comment on that.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list