2 ms·
For static linking quite possibly, although you could still have un-optimizeable sources of overhead because of having to indirect through pointers everywhere,
by simias 3y ago
For static linking quite possibly, although you could still have un-optimizeable sources of overhead because of having to indirect through pointers everywhere, for instance in nested structs. Something like a->b->c->d is going to be more expensive than a.b.c.d, for instance.
I'm also not sure that dynamic linkers are typically smart enough to do this type of optimization, but I admit that I'm not familiar with the state of the art in dynamic linking technology.