This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library annoyance with gcc-3_0-branch
Linus Torvalds <torvalds@transmeta.com> writes:
> On Tue, 20 Feb 2001, Geert Bosch wrote:
> >
> > BTW, what is the overhead on Linux for calling routines in dynamic
> > libraries as opposed to code statically linked in? Has anybody done
>
> It's noticeable, and it depends on the architecture.
[...]
A much bigger problem than function calls are data references. At least in
Linux/i386 currently a shared library data reference costs you a COW of the
referencing code page. Fortunately libgcc2 ATM does seem to export only
a few data symbols ATM, but if they're often referenced shared text code
will be essentially turned off.
-Andi