1

当我说.maxstack 1,它是如何工作的?我可以将任何数据类型推入堆栈吗?它如何决定堆栈的大小。它是过早完成的,还是在运行时完成的?

Edit1:即使我只在堆栈上推送一个参数,它如何决定它的内存分配?它的数据类型是在编译时还是运行时识别的?

4

1 回答 1

2

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.

于 2011-05-04T05:40:18.970 回答