3 ms·
> If that's the criterion, then vtables make C++ "interpreted." So do function calls; you don't know until the .o is linked where a read call will go. Unix C l
by kazinator 9y ago
> If that's the criterion, then vtables make C++ "interpreted."
So do function calls; you don't know until the .o is linked where a read call will go. Unix C library? Or some local override of read?
And, speaking of vtables, modern shared lib calls give obj->virtual(args) a run for its money in terms of overhead. It's worse because a vtable's structure is determined at compile time, so it's just positional referencing; a shared lib call has the referencing through a table plus string name lookup to figure out the offsets at run-time (at least the first time through).