News for hackers. Stuff that matters.
Re:Exploring calling conventions with x86 assembly by unsignedqword on Saturday September 03, 2016 @08:00PM (#12421878)
It can sometimes make a difference, but usually the compiler's optimizer does a good job of deciding whether or not a function should be inlined.

If you want you can nudge the compiler in the direction you want via the "inline" keyword, although the compiler won't always take this suggestion to heart. MSVC has "__forceinline" but it too will not always comply.

Before the "inline" keyword, macros were the standard way to do this, IIRC

Re:Exploring calling conventions with x86 assembly by colejohnson66 on Saturday September 03, 2016 @11:31PM (#12422531)
There's something funny about a compiler being able to ignore something called "force inline"
Re:Exploring calling conventions with x86 assembly by gruez on Sunday September 04, 2016 @09:56AM (#12424335)
Sometimes it's not possible to inline functions, for example recursive calls