EGCS: pointer to member functions.

Richard Henderson rth@cygnus.com
Wed Jun 30 23:15:00 GMT 1999


On Wed, Jun 23, 1999 at 03:13:58AM -0300, Alexandre Oliva wrote:
> Moreover, even if the test cost is close to zero, it would still have
> to branch, and, given that the `thunk' I have in mind is as simple as
> a `trampoline', I don't see how it could be less efficient than the
> current approach.  Only if branches with good prediction were much
> cheaper than a 100% certain jump; is this the case?

Indirect branches are often not predicted at all, and are typically
horrible for performance.  Most every target besides ia32 and m68k
would need to use an indirect branch in the thunk because a pc-relative
branch won't reach.


r~



More information about the Gcc-patches mailing list