什么是新的.NET本机 [英] What is new .Net Native

查看:142
本文介绍了什么是新的.NET本机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我看了一下新的.NET本机上的<一的一篇文章href="http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-net-native-$p$pview.aspx">MSDN.

Today I have read an article about the new .Net Native on MSDN.

Windows应用商店的应用程序启动至多60%的速度在.NET本机并有   更小的内存占用。我们的第一个版本是一个开发者   preVIEW,使您可以开发和测试应用程序使用此新   编译器。这preVIEW .NET本土的发行为您提供   C ++与C#的生产效率的表现。

"Windows Store apps start up to 60% faster with .NET Native and have a much smaller memory footprint. Our first release is a Developer Preview that allows you to develop and test apps with this new compiler. This preview release of .NET Native offers you the performance of C++ with the productivity of C#".

当然,这是非常有趣,但如果净是本地人新的编译器它提供了良好的性能,为什么我们需要去RyuJIT。这是什么新的.NET原生?新的.NET本地和RyuJIT之间的区别是什么,也是微软发布的编译器为一个名为罗斯林服务。因此,罗斯林如何支持这个新的.NET本机。

Of course, this is really interesting but If .Net Native is a new compiler which gives good performance then why we needs to go for RyuJIT. What is this new .Net Native? What is the difference between new .Net Native and RyuJIT, also Microsoft released compiler as a service called Roslyn. So how Roslyn supports this new .Net Native.

推荐答案

.NET原住民不是罗斯林项目本身的一部分。罗斯林是重新实现的C#和VB编译器和语言服务。请记住这些编译器产生的托管程序集。为了运行这些,他们必须被翻译成特定平台的code。这通常是通过JIT编译器在.NET运行时完成。

.NET Native is not part of the Roslyn project as such. Roslyn is a re-implementation of the C# and VB compilers and language services. Remember these compilers produce managed assemblies. In order to run these, they have to be translated to platform specific code. This is typically done through the JIT compiler in the .NET runtime.

.NET本机可以让你把.NET项目纳入类似于NGEN做本机二进制文件,但有一些重要的差异。 .NET本机采用了不同的本地编译器的部分比NGEN产生更快,更小的code一般。它还允许一种静态连接不可用定期.NET应用程序。

.NET Native allows you to turn .NET projects into native binaries similar to what NGEN does, but with a few important differences. .NET Native uses a different native compiler part than NGEN that produces faster and smaller code in general. It also allows a kind of static linking that is not available for regular .NET apps.

这篇关于什么是新的.NET本机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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