HT
How Things Work
System Online

JIT Compilation Visualizer

Watch C# source code transform from IL to native machine code at runtime.

C# Source Code
IL (Intermediate Language)
Native x86-64

C# Source Code

public int Add(int a, int b)
{
    return a + b;
}

IL (Intermediate Language)

.method public int32 Add(int32 a, int32 b)
{
    .maxstack 2
    ldarg.1        // push a
    ldarg.2        // push b
    add            // a + b
    ret            // return result
}

Native x86-64

Add:
    mov  eax, ecx     ; a -> eax
    add  eax, edx     ; eax += b
    ret                ; return eax

Join the discussion

Comments

?

Loading comments...

Cookie preferences

We use essential cookies for sign-in and preferences. With your permission, we also use basic analytics to improve lessons.