.Net框架JIT和Bulldozer特殊指令

发布于 2025-01-08 04:44:07 字数 267 浏览 1 评论 0原文

AMD Bulldozer 在服务器领域取得了成功,但在桌面领域表现不佳。据我了解,造成这种情况的一个主要原因是服务器应用程序已被重写以使用Bulldozer的特殊指令,而桌面应用程序中仍然没有使用这些指令。我们是否会期望即时编译器 (JIT) 在 4.5 中使用这些,它们是否可以向后移植到 4.0?

澄清:我的理解是 JIT 是针对其运行的机器进行编译的,而不是针对其编译为 IL 指令的机器进行编译。有人声称,正因为如此,JIT 应用程序实际上可以比直接编译并链接为二进制的普通代码具有更高的性能。

AMD Bulldozer has been successful in the server space but has performed poorly on the desktop. As I understand it, a major cause of this is that server applications have been rewritten to use Bulldozer's special instructions, which are still not being used in desktop applications. Will or do we expect the Just in time Compiler (JIT) to use these in 4.5, can/ will they be back ported to 4.0?

Clarification: My understanding was that the JIT compiles for the machine it is running on, not the machine on which it was compiled to IL instructions. It has been claimed that because of this JIT applications can actually have higher performance than normal code which is compiled and linked straight down to binary.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百思不得你姐 2025-01-15 04:44:07

不幸的是,.NET JIT 在性能方面并不是特别复杂:

  • 即使在服务器上,它也不会像 C++ 编译器那样进行大量优化,尽管它具有与 C++ 编译器相同的信息。它只是不做某些事情
  • 它只对一些带有浮点数的操作使用特殊指令
  • x64 甚至存在质量问题,进行了无效的优化
  • 缺少一些明显的优化,例如逃逸分析

似乎 JIT 的开发预算不是特别高。所以我怀疑我们是否会看到这样的专门指令被使用。

Unfortunately, the .NET JIT is not particularly sophisticated when it comes to performance:

  • Even on servers it does not do heavy optimizations like a C++ compiler does, although it has the same information as a C++ compiler has. It just does not do certain things
  • It uses special instructions only for some operations with floats
  • The x64 even has quality problems with invalid optimizations being done
  • Some obvious optimizations like escape analysis are missing

It seems like the JIT is not being developed with a particularly high budget. So I doubt we will see such specialized instructions being used.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文