From: Nikita K. <nn...@em...> - 2011-04-12 06:36:46
|
>Yes, it can. It stores first 4 (on linux 6) arguments in registers, the >rest are stored on stack using cdecl conventions. I must say, there is a difference in treatment of the stack between Windows and Linux systems. Windows not only passes the first 4 parameters in registers but ALWAYS allocates space on stack for them even if the callee doesn't have parameters at all. http://msdn.microsoft.com/en-us/library/ms235286(v=vs.80).aspx - see Calling conversion, the second paragraph. Linux by-term doesn't allocate additional space on stack for the first parameters. |