What is the difference between managed and unmanaged code?
Answer Posted / sudhir singh
MANAGED CODE is what Visual Basic .NET and C# compilers create. It runs on the CLR (Common Language Runtime), which, among other things, offers services like garbage collection, run-time type checking, and reference checking. So, think of it as, "My code is managed by the CLR."
Visual Basic and C# can only produce managed code, so, if you're writing an application in one of those languages you are writing an application managed by the CLR. If you are writing an application in Visual C++ .NET you can produce managed code if you like, but it's optional.
UNMANAGED CODE compiles straight to machine code. So, by that definition all code compiled by traditional C/C++ compilers is 'unmanaged code'. Also, since it compiles to machine code and not an intermediate language it is non-portable.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can I remove .net framework?
What is entity framework? : Entity framework
what is split entity?
Do I need microsoft .net framework?
Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?
What is the version number for the next version of the .net framework, codenamed �orcas�?
Describe the roles of clr in .net framework.?
What is an asynchronous controller in asp.net mvc?
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
what is entity framework?
Is .net core replacing .net framework?
Is .net core faster than .net framework?
What is renderbody?
Explain test driven development (tdd) ?
What is .net framework & its benefits?