Re:Exploring calling conventions with x86 assembly
by userbinator on Sunday September 04, 2016 @12:39AM
(#12422746)
A call and a return is already two instructions, and this simple function is essentially also 2 (or 1 if you use a conditional move as illustrated). Passing the arguments and making the call alone takes more instructions than the function body itself. It'll be both smaller and faster, so no tradeoffs there. To me, this is clearly in the "yes, definitely inline it" category.
[ Parent
| on HN ]
There are no comments on this comment yet.