开发者

Size of 1 stack allocated by .maxstack 1

When I say .maxstack 1, how does it work? Can I push any datatype onto the stack? How does it decide the size for the stack. Is it done prematurely, or at runtime?

Edit1: Even when I push only one argument on the stack,how does it decide the memory allocation for it?Is its data 开发者_Go百科type identified at compile time or run time?


Yes, any type. It it the number of items to reserve space for on the stack. This is more for verification than for space, as far as I can tell - because as you note different types require different amounts of space (oversized structs, for example).

1 may be a bit low in most cases, though.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜