EGCS: pointer to member functions.

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jun 30 15:43:00 GMT 1999


On Jun 23, 1999, Jason Merrill <jason@cygnus.com> wrote:

>>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

>> 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?

> So I'm told.  I must admit that I don't really understand the situation
> myself.

Even if the branch is followed by a jump?  That's weird...  But now I
see there are cache issues too, and using a trampoline certain doesn't 
contribute to locality of code :-(

Well, I could add this point to the project, implying that it may end
up not being useful in general (although it might be on some
architectures), or just wipe it out.

I guess you'll just tell me to forget about it, but, just in case,
I'll wait for your input :-)

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc mailing list