简体   繁体   English

加载常量的MSIL指令

[英]MSIL instructions that load constants

I just read an article and saw and only one MSIL instruction that loads constants. 我刚看了一篇文章 ,看到只有一条加载常量的MSIL指令。 That's ldc.r8 and that's loads double constant. 这是ldc.r8 ,那是加载double常数。

Now I'm curious about that. 现在我很好奇。 I did a google search but barely found something. 我做了谷歌搜索,但几乎找不到东西。 Can you tell me, what kind of constant load instructions are there in .NET? 你能告诉我,.NET中有哪些常量加载指令? Where do I read about them? 我在哪里读到它们?

One source for the instruction set is here: http://en.wikipedia.org/wiki/List_of_CIL_instructions ; 指令集的一个来源是: http//en.wikipedia.org/wiki/List_of_CIL_instructions ; you'll see 16 ldc instructions there. 你会在那里看到16个ldc指令。

If you'd like a more comprehensive source of information, try the spec: http://www.ecma-international.org/publications/standards/Ecma-335.htm 如果您想了解更全面的信息来源,请尝试以下规范: http//www.ecma-international.org/publications/standards/Ecma-335.htm

Load value of type float64 onto the evaluation stack as type F (float). float64类型的值float64到评估堆栈上,类型为F(float)。

Link : http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes.ldc_r8.aspx 链接: http//msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes.ldc_r8.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM