0918nobita / cil

CIL (Common Immediate Language) examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CIL

Common Intermediate Language

Path Description
prog1.il Do nothing
prog2.il Print Hello, world!
hello.il Print Hello, world!
addInt32.il Sum up int32 values
strIndexOf.il Call String::indexOf(string)
cmdArgs.il Print command line arguments

Assemble / Run

$ ilasm cmdArgs.il -quiet
$ mono cmdArgs.exe a b "c de"
args[1] = a
args = {
    /home/kodai/github/cil/cmdArgs.exe
    a
    b
    c de
}

Disassemble

$ cd mono
$ mcs Foreach.cs # outputs Foreach.exe
$ ildasm Foreach.exe -out=Foreach.exe.il

About

CIL (Common Immediate Language) examples


Languages

Language:Go 54.4%Language:Makefile 24.6%Language:C# 19.0%Language:F# 2.0%