|
|
In article <41166817@news.povray.org> , Wolfgang Wieser
<wwi### [at] nospamgmxde> wrote:
> First of all, quoting the GCC info:
> ---------------------------------------------------------------------
> Note that you will still be paying the penalty for the call through a
> function pointer; on most modern architectures, such a call defeats the
> branch prediction features of the CPU. This is also true of normal
> virtual function calls.
That is completely outdated information and wrong on anything available in
the past decade. It infers a completely static branch prediction.
The abstraction penalty is commonly measured with the so-called Stepanov
benchmark. Google will probably find the source code as well as current
measures on current compilers and systems for it.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|