请问.NET CLR真正优化当前处理器 [英] Does the .NET CLR Really Optimize for the Current Processor

查看:179
本文介绍了请问.NET CLR真正优化当前处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我读到即时编译语言,如C#或Java的性能,通常的作者说,他们应该/理论上可以胜过许多本地编译应用程序。该理论在于原生应用程序通常只编一个处理器系列(如86),因此编译器不能作出一定的优化,​​因为他们可能没有真正上所有处理器的优化。在另一方面,CLR可以在JIT过程中进行特定处理器的优化。

When I read about the performance of JITted languages like C# or Java, authors usually say that they should/could theoretically outperform many native-compiled applications. The theory being that native applications are usually just compiled for a processor family (like x86), so the compiler cannot make certain optimizations as they may not truly be optimizations on all processors. On the other hand, the CLR can make processor-specific optimizations during the JIT process.

有谁知道,如果微软(或单声道的)CLR实际执行过程中的特定处理器的优化JIT的过程?如果是这样,什么样的优化?

Does anyone know if Microsoft's (or Mono's) CLR actually performs processor-specific optimizations during the JIT process? If so, what kind of optimizations?

推荐答案

这是早在2005年,大卫·Notario列举几个具体的有针对性的优化,是他的博客文章 是否JIT利用我的CPU?。我无法找到新的CLR 4什么,但我想是包括几个新的项目。

From back in 2005, David Notario listed several specific targeted optimizations is his blog entry "Does the JIT take advantage of my CPU?". I can't find anything about the new CLR 4, but I imagine several new items are included.

这篇关于请问.NET CLR真正优化当前处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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