Search code examples
.netc++-cli

What is the difference between managed, unmanaged, and native code?


Is unmanaged code the same as native code? What is the difference?


Duplicate: Difference between native and managed code?


Solution

  • Managed code is code that runs under a virtual machine, in other words its memory is "managed" by another program ( C# for example ).

    Unmanaged code runs on the underlying architecture without requiring a virtual machine, but it may require a runtime library. ( C for example )

    Further Reading: http://en.wikipedia.org/wiki/Managed_code

    whoops, heres a Duplicate.