Abstract
In this section we measure the direct cost of virtual function table lookup for a number of realistic C++ programs running on superscalar processors employing co-scheduling and simple indirect branch prediction, and identify the processor characteristics that most affect this cost. In Section 5.2 we saw that, when analyzed in isolation, the cost of dispatch sequences of table-based techniques are similar to virtual function tables. Therefore VTBL serves as a representative technique for table-based dispatch in this quantitative analysis.
“This virtual call mechanism can be made essentially as efficient as the ‘normal function call’ mechanism.” Bjarne Stroustrup [121]
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer Science+Business Media New York
About this chapter
Cite this chapter
Driesen, K. (2001). Measurement of Virtual Function Call Overhead on Modern Processors. In: Efficient Polymorphic Calls. The Springer International Series in Engineering and Computer Science, vol 596. Springer, Boston, MA. https://doi.org/10.1007/978-1-4615-1681-1_6
Download citation
DOI: https://doi.org/10.1007/978-1-4615-1681-1_6
Publisher Name: Springer, Boston, MA
Print ISBN: 978-1-4613-5675-2
Online ISBN: 978-1-4615-1681-1
eBook Packages: Springer Book Archive