Wednesday, 22 June 2011

Managed and Unmanaged code

Managed Code :
A code that executed and understandable the instructions of CLR is called Managed code. Typically applications written in Java, VB.Net, C#.Net etc.
Code that is executed by the CLR and provides information - store, retrieve security information, handle exceptions, encoded in assembly modules, garbase collection etc.
Unmanaged Code :
A code that execute without the instruction of CLR is called Un-managed code.
Code that is directly executed by the operating system is known as Unmanaged code. Typically applications written in VB6.0, C, C++ etc all are examples of Unmanaged code.
Unmanaged code is always compiled to the native code which is architecture specific. when we compile unmanaged code it gets compiled into a binary x86 image. and this image always depends on the platform on which the code was compiled and can not the executed on the other platforms.
In unmanaged code the memory management, type safety, security etc needs to be taken care of by the developers.



No comments:

Post a Comment