Understanding When to Call Native Code

Chapter 2, “Introducing the .NET Compact Framework,” discussed the architecture of the .NET Compact Framework and its implementation of the Common Language Runtime. Managed applications and managed DLLs that support them, such as System.dll, are composed of Intermediate Language (.IL) byte codes. As a program calls class methods, the runtime compiles the byte codes of the methods into machine code instructions that can be executed by the CPU on the device running the program.

Chapter 2 explains the rules of how the Just-In-Time (JIT) compilation works. Understanding these rules is crucial to writing complex managed applications that perform well.

By developing with managed code, developers enjoy a variety ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.