Folding similar templates into one

Daniel Murphy yebblies at nospamgmail.com
Fri Jun 28 07:00:00 PDT 2013


"Meta" <jared771 at gmail.com> wrote in message 
news:ovlbbsdtyejzpsllfrcb at forum.dlang.org...
>I'm not an expert on how DMD works, but could this possibly be done after 
>the native code is generated, but before optimizations are performed? Just 
>throwing out ideas.

The obvious place to do this is at link time - then you get to fold all 
functions from all compilation units.  It becomes something similar to 
string constant pooling - you fold sections/data based on content, not 
labels. 




More information about the Digitalmars-d mailing list