proportion of indirect function calls in C/C++ (Fergus Henderson)
21 Jun 1996 17:22:39 -0400

          From comp.compilers

Related articles
proportion of indirect function calls in C/C++ (1996-06-21)
| List of all articles for this month |

From: (Fergus Henderson)
Newsgroups: comp.compilers
Date: 21 Jun 1996 17:22:39 -0400
Organization: Comp Sci, University of Melbourne
Keywords: C, C++, performance, question

Does anyone have any statistics on the proportion of function calls via
function pointers, the proportion via virtual functions, the proportion
inlined, and the proportion that use ordinary direct function calls in
typical C or C++ programs?

Basically I'm trying to estimate the performance impact on C++ code of
a change that would slow down calls via function pointers (but not
direct calls or virtual calls) by about the cost of a direct call.

Fergus Henderson <>
WWW: <>
PGP: finger fjh@

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.