[fpc-devel] Dnamic packages support
Marco van de Voort
marcov at stack.nl
Sat Nov 3 20:12:59 CET 2007
> Op Sat, 3 Nov 2007, schreef Michael Van Canneyt:
> Even then, there will only be savings if the amount of code that can be
> smartlinked is small.
>
> Example: Let's say an LCL package is 10MB. 2 applications are 2MB when
> smartlinked, and 100kb when linked against the package. (The heap can be
> ignored in this discussion because its memory usage does not differ
> depending on packages being used.)
>
> Memory use with packages: 10MB+2*100KB = 10,2MB.
> Memory use with smartlinking: 2*2MB = 4MB
_ADDRESS_ space use. Memory use depends on actual usage, since the pages of
memory mapped DLLs will only be loaded on access. (and afaik linux does it
similarly)
More information about the fpc-devel
mailing list