Top "Calling-convention" questions

A calling convention refers to the way a function transmits parameters to a called function and receives a return value from it.

What are the calling conventions for UNIX & Linux system calls (and user-space functions) on i386 and x86-64

Following links explain x86-32 system call conventions for both UNIX (BSD flavor) & Linux: http://www.int80h.org/…

linux assembly x86-64 calling-convention abi
What are callee and caller saved registers?

I'm having some trouble understanding the difference between caller and callee saved registers and when to use what. I am …

assembly cpu-registers calling-convention abi
What is __stdcall?

I'm learning about Win32 programming, and the WinMain prototype looks like: int WINAPI WinMain ( HINSTANCE instance, HINSTANCE prev_instance, PSTR …

c winapi calling-convention stdcall
Retrieving the calling method name from within a method

I have a method in an object that is called from a number of places within the object. Is there …

c# reflection methods calling-convention
What registers to save in the ARM C calling convention?

It's been a while since I last coded arm assembler and I'm a little rusty on the details. If I …

c assembly arm calling-convention function-call
Weird MSC 8.0 error: "The value of ESP was not properly saved across a function call..."

We recently attempted to break apart some of our Visual Studio projects into libraries, and everything seemed to compile and …

c++ visual-c++ x86 stack calling-convention
__cdecl or __stdcall on Windows?

I'm currently developing a C++ library for Windows which will be distributed as a DLL. My goal is to maximize …

c++ windows dll calling-convention binary-compatibility
What is the meaning and usage of __stdcall?

I've come across __stdcall a lot these days. MSDN doesn't explain very clearly what it really means, when and why …

c++ windows calling-convention
Can Scala call by reference?

I know that Scala supports call-by-name from ALGOL, and I think I understand what that means, but can Scala do …

scala calling-convention evaluation-strategy
Pass function as a parameter

I've written function 'A' that will call one of a number of other functions. To save re-writing function 'A', I'd …

powershell parameter-passing calling-convention