What's the difference between managed / unmanaged and native code?
is unmanaged code native code? What is differnece
any butt help me.
Duplicate: Difference between native and managed code?
a source to share
Managed code is code that runs under a virtual machine, in other words, its memory is "managed" by another program (eg C #).
Unmanaged code runs on the underlying architecture without the need for a virtual machine, but it might require a run-time library. (For example C)
Further reading: http://en.wikipedia.org/wiki/Managed_code
whoops, Duplicate .
a source to share
Managed code is run by the .NET runtime. Thus, the CLR handles, among other things, memory management (such as garbage collection). Managed binaries are in IL code. This code is not directly understood by the CPU, but interpreted by the CLR for the CPU. Any CLR can run managed assemblies.
Unmanaged code is simply compiled code. A series of ASM instructions that the processor understands directly. It works faster, but has less support and is limited in childbirth to a certain set of possible processors on which it can run.
a source to share
One day I heard a rather pleasant story. If the original person comes and sees it, then I will count it. I'm not sure if he would want me to give up his name.
Unmanaged code: Imagine really confused warriors. They have complete free reign. They can do whatever they want and go where they need to. The only problem is they feed anywhere. They clean up the whole place and go to places that they shouldn't. This is C / C ++ etc.
Managed Code: These guys are distant cousins. Even more sophisticated. But this hardly fits and means. In fact, they are insignificant in weight. They are not allowed to run wherever they want. There is actually a border holding them in its little handle. They were also writhing, but they were diapers so they didn't clean up all over the place. And usually the little guy comes in and cleans his diapers. This is Java.
Stern is, obviously, memory. Borders is a virtual machine. The little guy is a garbage collector.
I just can't remember how the portability function is supposed to figure in this story.
a source to share