Re: An article I alluded to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-07-26 at 22:54 -0700, Ian Lance Taylor wrote:

> I didn't see any other obvious errors.

  Always try to avoid calling functions within loops or if absolutely
  necessary, use function pointers, especially if the function that is
  called is data dependent.



There may be DSPs where that statement is true, but I doubt it's true
for many general purpose processors.  In fact, on several general
purpose processors calls through a function pointer are more than an
order of magnitude more expensive than a simple direct call.

jeff


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux