Skip to content
/ cil Public

CIL (Common Immediate Language) examples

Notifications You must be signed in to change notification settings

0918nobita/cil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published