.net - 我可以在 .NET 中避免 JIT 吗?

标签 .net jit

假设我的代码是否总是要在特定的处理器上运行,如果我在安装过程中获得了这些信息 - 是否有机会避免 JIT?

最佳答案

使用 NGEN :

The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer. The runtime can use native images from the cache instead using the just-in-time (JIT) compiler to compile the original assembly...

For additional information on using Ngen.exe and the native image service, see Native Image Service...

关于.net - 我可以在 .NET 中避免 JIT 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/446211/

相关文章:

您可以动态编译和链接/加载 C 代码到 C 程序中吗?

c# - 将大型 C# winforms 应用程序升级到 WPF 的最简单方法是什么

c# - 如何使用反射获取构造函数作为 MethodInfo

c# - 为什么默认情况下不内联自动属性?

java - Java 中的 JIT 错误

azure - 是否有任何 PowerShell 命令可以获取已分配或未分配 JIT(即时)的所有 Azure VM 的详细信息?

c# - 将资源字典文件动态加载到 wpf 应用程序会出错

.net - 如何确定 SqlConnection 是否被登记到 System.Transactions 的 tx 中?

.net - 从多个集合中获取特定元素组合排名的算法

c++ - 开源虚拟机