By using this site, you agree to our Privacy Policy and our Terms of Use. Close

@alephnull

This is the PC discussion forum so I was thinking more like x86. Perhaps this is why we are disagreeing?

From your link:
"Due to the small number of architectural registers, the x86 calling conventions mostly pass arguments on the stack"

As far as inline functions, I always thought those were compiler hints so there is no guarantee that the compiler will actually inline them. I also think of inline functions as now actually being a part of the function they were inlined within. No different than other lines of code within the calling function. Since no call instructions are being executed there wouldn't be a purpose for pushing params on to the stack.

Let me know if any of my assumptions are wrong for X86.

Whether or not a function is inlined it still doesn't change that the called function (inlined or not) code has to execute before the calling function continues execution. Assuming this is a synchronous function call.