参见英文答案 >
What is managed or unmanaged code in programming?????????????????????????????????????13个
我发现有人说托管代码和非托管代码.有什么不同?它只适用于.Net吗?
您可以阅读这篇维基百科文章,Managed code.基本上托管代码是Microsoft术语,但这个概念并不新鲜.考虑以下
definition:
An application program that is executed within a runtime engine installed in the same machine. The application cannot run without it. The runtime environment provides the general library of software routines that the program uses and typically performs memory management. It may also provide just-in-time (JIT) conversion from source code to executable code or from an intermediate language to executable code. Java,Visual Basic and .NET’s Common Language Runtime (CLR) are examples of runtime engines.
现在将此与definition的非托管代码进行对比:
An executable program that runs by itself. Launched from the operating system,the program calls upon and uses the software routines in the operating system,but does not require another software system to be used. Assembly language programs that have been assembled into machine language and C/C++ programs compiled into machine language for a particular platform are examples of unmanaged code.