c# – 什么是托管代码和非托管代码?

c# – 什么是托管代码和非托管代码?,第1张

概述参见英文答案 > What is managed or unmanaged code in programming?                                    13个 我发现有人说托管代码和非托管代码.有什么不同?它只适用于.Net吗? 您可以阅读这篇维基百科文章, Managed code.基本上托管代码是Microsoft术语,但这个概念并不新鲜.考虑以下 defi 参见英文答案 > 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.

总结

以上是内存溢出为你收集整理的c# – 什么是托管代码和非托管代码?全部内容,希望文章能够帮你解决c# – 什么是托管代码和非托管代码?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1223167.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-05
下一篇 2022-06-05

发表评论

登录后才能评论

评论列表(0条)

保存