摘要:
不可变 1.IL代码优化字符串+操作 例1: 1)string s = "hello" + "world"; //IL代码会自动优化为一条指令 ldstr "helloworld" 加载到evaluation stack 2)string s1=“hello”; string s2="world"; 阅读全文
posted @ 2019-01-07 23:26
vvf
阅读(254)
评论(0)
推荐(0)
摘要:
String 阅读全文
posted @ 2019-01-07 23:26
vvf
阅读(73)
评论(0)
推荐(0)
摘要:
Evaluation Stack nop:如果修补操作码,则填充空间。尽管可能消耗处理周期,但未执行任何有意义的操作。 ldc.i4.0:将整数值 0 作为 int32 推送到计算堆栈上。ldc.i4.1:将整数值 1 作为 int32 推送到计算堆栈上。ldc.i4.2:将整数值 2 作为 int 阅读全文
posted @ 2019-01-07 21:53
vvf
阅读(263)
评论(0)
推荐(0)
摘要:
Evaluation Stack The evaluation stack, which is mentioned often in the description of the Hello World application, is the pivotal structure of MSIL ap 阅读全文
posted @ 2019-01-07 21:50
vvf
阅读(554)
评论(0)
推荐(0)