【发布时间】:2011-06-30 11:55:24
【问题描述】:
当你在 IL 中看到这样的一行时:
// Code size 25 (0x19)
尼特实际上是什么意思?它是在谈论(字节)内存使用情况吗?我所能收集到的只是它比 IL 行的数量多一个。以下是完整的 IL。
.method private hidebysig static void Execute(string y) cil managed
{
// Code size 25 (0x19)
.maxstack 8
IL_0000: nop
IL_0001: ldstr "string"
IL_0006: call void [mscorlib]System.Console::WriteLine(string)
IL_000b: nop
IL_000c: ldarg.0
IL_000d: callvirt instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
IL_0012: call void [mscorlib]System.Console::WriteLine(object)
IL_0017: nop
IL_0018: ret
} //
当我查看 ECMA_335 文档时,它将代码大小定义为:代码(文本)部分的大小,或者如果有多个部分,则为所有代码部分的总和。 (嗯?)
【问题讨论】: