Compiler: Size of generated executable file

dsimcha dsimcha at yahoo.com
Tue Jan 12 19:16:53 PST 2010


== Quote from Adam D. Ruppe (destructionator at gmail.com)'s article
> I'm generally for static linking anything that isn't part of the base OS
> install, just to ease the process for end users.

One thing that has escaped discussion in the static vs. dynamic linking debate so
far is **templates**.  If you use template-heavy code all over your library, that
pretty much rules out dynamic linking.  If you avoid templates so you can
dynamically link, you're avoiding IMHO the single most important feature that
distinguishes D from other languages and are writing non-idiomatic D.  You may as
well use some other language that's better suited to doing things without
templates.  Therefore, I suspect D culture will be very biased toward static
linking for that reason.



More information about the Digitalmars-d mailing list