Program size, linking matter, and static this()

torhu no at spam.invalid
Mon Dec 19 10:09:18 PST 2011


On 19.12.2011 16:08, Steven Schveighoffer wrote:
> On Fri, 16 Dec 2011 17:30:44 -0500, torhu<no at spam.invalid>  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.
>
> The DLL is loaded into memory once.  With static linking, it's loaded
> every time you run an exe.

I thought we were talking about distribution sizes, not memory use.  But 
anyway, DLL's won't do a lot as long as people don't have a whole bunch 
of D programs installed.


More information about the Digitalmars-d mailing list