LWN.net Logo

Missing the AF_BUS

Missing the AF_BUS

Posted Jul 9, 2012 8:18 UTC (Mon) by nix (subscriber, #2304)
In reply to: Missing the AF_BUS by daniel
Parent article: Missing the AF_BUS

Actually, predicted function calls *are* nearly free on modern CPUs. Of course, function calls stuck deep inside conditionals are less likely to be successfully predicted as taken -- and unpredicted/mispredicted function calls (like all other mispredicted, non-speculated branches) are expensive as hell. However, these days I don't believe there is much more reason to be concerned about function calls than there is to be concerned about any other conditional. (Specialists in deep x86 lore, which I am very much not and who I am merely reiterating from dim and vague memory, are welcome to contradict me, and probably will!)


(Log in to post comments)

Missing the AF_BUS

Posted Jul 9, 2012 23:06 UTC (Mon) by daglwn (subscriber, #65432) [Link]

The call is cheap. The saving/restoring of registers and lost optimization opportunities are not.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds