1

可能是一个愚蠢的问题,但是 MSIL 是否具有类似 Forth 的通用函数来操作其堆栈上的数据?(例如,DUP、SWAP 等)

4

2 回答 2

1

IL is a stack-based language, so most instructions manipulate the stack in some way. dup is a IL instruction, but it doesn't have swap (you have to use a local variable)

于 2012-03-14T18:59:47.550 回答
0

CIL 的第 III 部分将为您提供所需的所有信息。

例如,第 3.33 节适用于 DUP。

于 2012-03-14T19:15:11.507 回答