加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 00:15:52 所属栏目:百科 来源:网络整理
导读:参见英文答案 What is managed or unmanaged code in programming?????????????????????????????????????13个 我发现有人说托管代码和非托管代码.有什么不同?它只适用于.Net吗? 解决方法 您可以阅读这篇维基百科文章,Managed code.基本上托管代码是Microso
参见英文答案 > 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读