On Mar 25, 2009, at 6:51 PM, Paul Lalonde wrote:
A cfront-ish approach to templates leads to hellish duplication of template-generated code in each module, and thence to even worse code bloat.

That's not the case, really. The compiler (well, at least the conventional one, not the one like we have on Plan9) has very little tricks up its sleeves that can help with that. The best case scenario is to generate everything into .os and hope that "de- duping" will be done by the linker. That's how COMDAT works. cfront-ish approach can do exactly
the same.

Thanks,
Roman.

Reply via email to