Common Intermediate Language - Computational Model

Computational Model

The Common Intermediate Language is object-oriented and stack-based. That means that data are pushed on a stack instead of pulled from registers like in most CPU architectures.

In x86 it might look like this:

add eax, edx

The corresponding code in IL can be rendered as this:

ldloc.0 ldloc.1 add stloc.0 // a = a + b or a += b;

Here are two locals that are pushed on the stack. When the add-instruction is called the operands get popped and the result is pushed. The remaining value is then popped and stored in the first local.

Read more about this topic:  Common Intermediate Language

Famous quotes containing the word model:

    Research shows clearly that parents who have modeled nurturant, reassuring responses to infants’ fears and distress by soothing words and stroking gentleness have toddlers who already can stroke a crying child’s hair. Toddlers whose special adults model kindliness will even pick up a cookie dropped from a peer’s high chair and return it to the crying peer rather than eat it themselves!
    Alice Sterling Honig (20th century)