[Issue 9922] Improve symbol emitting for templates for better separate compilation support

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 19 16:40:12 PDT 2013


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



--- Comment #3 from Martin Nowak <code at dawg.eu> 2013-07-19 16:40:11 PDT ---
We had another Bugzilla for link errors with separate compilation but I can't
find it.
There I mentioned that the correct compiler behavior would be to emit a weak
template instance to each object file that references that instance.
This has some performance issues but it only affects separate compilation with
multiple object files.
One approach to mitigate the performance impact would be something like partial
linking, i.e. producing the duplicated template instances at binary level not
at AST level.

-- 
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