您的位置:首页 > 编程语言 > C#

c#代码是如何运行的?

2012-06-15 10:30 155 查看
The C# build process is simple compared to C and C++ and more flexible than in Java.
这句话是微软说的,但是就是没有看出来,为什么说比Java灵活。要说CLR是可以运行符合CLI规范的所有语言的话,JVM也是可以运行Ruby等语言的。
C#:

C# Source(Resources References)
|
V
Complier
|
v
Managed Assembly(including MSIL Metadata)
|
(IL metadata & references loaded by CLR)
|
v
.NET Framework
CLR:
Security/Garbage Collection/JIT(Just In Time) Complier ---(uses)-->  .NET Framework Class Libraries(IL)
|
(Converted to native machine code)
|
v
Operating System


Java:

Java files
|
v
Java Complier(javac.exe)
|
v
.class files(Byte Code)
|
v
JVM(java.exe)


这两个过程没有决定性差别。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: