A modest proposal: eliminate template code bloat
Walter Bright
newshound2 at digitalmars.com
Sun Apr 8 11:51:52 PDT 2012
On 4/8/2012 4:01 AM, Dmitry Olshansky wrote:
> I think it's been ages since I meant to ask why nobody (as in compiler vendors)
> does what I think is rather simple optimization.
I worked out how to do it a while ago, but there's been no time to implement it.
(You can't do a memcmp because of all the relocations.)
The main difficulty is not being able to modify the linker. So you're pretty
much limited to what the compiler is able to do before linking. D does allow the
compiler to deal with all the modules at compile time, so this helps a lot.
More information about the Digitalmars-d
mailing list