Re: linking perl statically against libperl
* Niko Tyni:
> If there are several /usr/bin/perl processes and /usr/bin/perl is
> statically linked against libperl, every process has its own copy of
> the libperl code in memory. In the case of dynamic linking, there's just
> one copy.
No, there is still only one copy in memory (or two if applications are
running which use the embedded interpreter).
In fact, static linking needs less non-sharable per-process data
because tables for dynamic relocations are not needed. The savings
are perhaps not as pronounced for the Perl interpreter because it is
linked with --export-dynamic (or equivalent) to export symbols to Perl
XS modules.
Reply to: