Barry Schwarz < XXXX@XXXXX.COM > writes:
I would expect that either both would be equivalent in performance, or
a direct call (not using an explicit function pointer) would be
slightly faster. If calling through a pointer were faster for some
reason, the compiler could easily implement a direct call as a call
through a function pointer.
(Strictly speaking, in a "direct" function call like foo(42), the name
"foo" is implicitly converted to a pointer, but in practice the
compiler is going to generate whatever code it thinks is best for the
Keith Thompson (The_Other_Keith) XXXX@XXXXX.COM < http://www.yqcomputer.com/
San Diego Supercomputer Center <*> < http://www.yqcomputer.com/
We must do something. This is something. Therefore, we must do this.
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.