C#代码是否编译为本地二进制文件? [英] Is C# code compiled to native binaries?

查看:425
本文介绍了C#代码是否编译为本地二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Java代码被编译成字节码,由JVM执行。

I know that Java code is compiled into byte-code, that is executed by the JVM.

C#是什么情况?我注意到,用C#编写的应用程序有 .exe 扩展名,这将建议他们是本机机器指令。但它是真的吗?

What is the case with C# ? I have noticed that applications written in C# have the .exe extension what would suggest they are native machine instructions. but is it really so ?

推荐答案

否。

,C#编译为中间语言(称为MSIL或CIL)。

Like Java, C# is compiled to an intermediary language (called MSIL or CIL).

与Java不同,IL存储在EXE文件中,EXE文件中有足够的实际EXE代码,框要求用户安装.Net。

Unlike Java, the IL is stored in EXE files which have enough actual EXE code to show a dialog box asking users to install .Net.

这篇关于C#代码是否编译为本地二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆