This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ppc-linux gcc configury patch


On Fri, Jun 04, 1999 at 12:49:47PM -0600, Cort Dougan wrote:
> I'm not willing to take a performance hit so AIX can add linux/ppc binary
> support.  Aren't branches of that size rare, though?

Yes and no.

We attempt to map the libraries such that calls into them get to
use `b', or more usually `ba', instead of `addis+addi+mtctr+bctr'.

Thing is, I'm not sure how much we're losing because of the change.
We have moved the base of the program up, but that has left more
room in the bottom 26 bits for shared libraries, and so for calls
into them to use `ba'.  I think the only place we lose is calls back
into the main application, which is really very rare.

It would be trivial to add a line to __elf_machine_fixup_plt to 
collect some statistics on what's happening with real applications.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]