D pointers

Tobi Vollebregt tobivollebregt at gmail.com
Sat Oct 1 16:39:11 BST 2005


> > The optimising compiler will very likely elect this->d to be cached in a
> > register, just like this itself is.
> Yeah, right. Glad we have soo many registers on i386.

So wouldn't this give an extra advantage if all members go in d,
instead of mixing d and non-d members?

In that case the compiler doesn't have to store the this pointer, just this->d.

Tobi




More information about the kde-core-devel mailing list