开发者

stdcall and cdecl stack alignment size

I have two questions:

  1. Is the stack alignment for the stdcall calling convention always 4 bytes, or is it 4 for a 32 bit mach开发者_如何学编程ine and 8 for a 64 bit machine?
  2. What is the stack alignment size for cdecl?

I am using Microsoft Visual Studio 2010.


Stack alignment for stdcall is always 4 bytes.

The stack alignment for cdecl is usually the size of the argument, but may be affected by compiler settings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜