This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: dynamic library cost (was RE: libtool, java woes)
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: dynamic library cost (was RE: libtool, java woes)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 12 Apr 2001 09:41:50 -0300
- Cc: tromey at redhat dot com, Jeff Sturm <jsturm at one-point dot com>, java at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <140D21516EC2D3119EE7009027876644049B5D50@hplex1.hpl.hp.com>
On Apr 10, 2001, "Boehm, Hans" <hans_boehm@hp.com> wrote:
> Even if you unconditionally compile the library as PIC, there's
> still the issue of whether the client can directly branch it, or
> branch to an indirect branch to the routine (X86) or branch to a
> more complicated trampoline (IA64).
Indeed. It's not just an issue of having one register put aside to
point to the GOT. Going through the PLT can indeed get quite
more expensive than a direct call.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me