LDC

LDC有兩層含義:一個是Least-developed country,即不已開發國家或者欠已開發國家;一個是Learning and Developing Community的縮寫,其中文的含義為“學習與發展共同體”。

LDC

LDS是一種計算機指令

LDC相關資料

首先來看一下一個有代表性的:ldc.i4num這個指令.在這個指令中,num被放到了堆疊上面:

Notethattherearespecialshort(andhencemoreefficient)encodingsfortheintegers-128through127,andespeciallyshortencodingsfor-1through8.Allshortencodingspush4byteintegersonthestack.Longerencodingsareusedfor8byteintegersand4and8bytefloating-pointnumbers,aswellas4-bytevaluesthatdonotfitintheshortforms.Therearethreewaystopushan8byteintegerconstantontothestack.

ldc指令的語法如下:
ldc.typevalue
ldc.i4.number
ldc.i4.snumber

在第一條語法中,ldc指令載一個指定類型的常量到stack.
在第二條語法的指令當中,ldc指令更加有效.它傳輸一個整型值-1以及0到8之間的整數給計算堆疊.當我們傳輸-1到計算堆疊的時候,這條ldc的語法指令又進一步演變成為ldc.i4.ml.

這裡,截取ECMA的C#標準裡面關於這個指令的完整參考:

Ref:
引用部分來自ECMA關於CLI部分的說明.如果安裝了.NetFrameworkSDK1.1的話,可以在這裡找到:
C:\ProgramFiles\MicrosoftVisualStudio.NET2003\SDK\v1.1\ToolDevelopersGuide\docs\PartitionIIICIL.doc

LDC參考資料

http://msdn2.microsoft.com/en-us/library/system.reflection.emit.opcodes.ldc_i4(vs.71).aspx

相關搜尋

熱門詞條

聯絡我們