書きかけ

すべてを展開すべてを収束
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 
 
 
 
 
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!
 
 
-
|
|
|
!
 
 
-
!
 
 
-
|
-
|
!
!
 
.assembly test{}
 
.method static void Main()
{
        .entrypoint
 
    .locals( int32 size )
 
        sizeof int32
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof int16
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof int8
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof string
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof Class1
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof Class2
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
        sizeof Class3
    stloc size
            ldloca size
        call instance string class [mscorlib]System.Int32::ToString()
    call void class [mscorlib]System.Console::WriteLine(string)
 
    ret
}
 
.class Class1
{
    .field string member1
    .field string member2
    .field string member3
}
 
.class Class2
{
}
 
.class Class3
{
    .method public void moo()
    {
        ret
    }
}

実行結果

 4
 2
 1
 4
 4
 4
 4

トップ 編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード 新規 一覧 単語検索 最終更新 ヘルプ 最終更新のRSS xenowire
Last-modified: 2018-01-25 (木) 15:09:27