Program size, linking matter, and static this()

Jonathan M Davis jmdavisProg at gmx.com
Fri Dec 16 14:40:56 PST 2011


On Friday, December 16, 2011 23:30:44 torhu wrote:
> On 16.12.2011 22:28, Steven Schveighoffer wrote:
> > In short, dlls will solve the problem, let's work on that instead of
> > shuffling around code.
> 
> How exactly do they solve the problem? An exe plus a DLL version of the
> library will usually be larger than just a statically linked exe.

You have to stick it all in the DLL anyway (since you can't know which parts 
will and won't be used), so the whole issue of not including used 
functionality goes away completely. There's no point in worrying about how 
much unused functionality gets included when you have no choice but to include 
everything regardless of whether it's actually used.

- Jonathan M Davis


More information about the Digitalmars-d mailing list