NGEN 86 VS 64与.NET可执行 [英] NGEN x86 vs x64 with .NET executables

查看:239
本文介绍了NGEN 86 VS 64与.NET可执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题:

我的.NET程序集编译的x86模式。我还可以利用NGEN的在x64 Windows系统上的性能优势?将86集被编译成原生code对64?

My .NET assemblies are compiled in x86 mode. Can I still leverage the performance benefits of NGEN on x64 Windows systems? Will x86 assemblies be compiled into native code on x64?

推荐答案

使用x86编译的程序将运行我WOW64的64位系统,但copiled有值为anycpu组件将本机运行,不管NGEN的。编译为x86的组件可以加载在64位系统和code编译值为anycpu将不加载32位DLL的32位程序集。

Assemblies compiled with x86 will run i wow64 on 64-bits systems, but assemblies copiled with AnyCPU will run natively, regardless of NGEN. Assemblies compiled for x86 can load 32-bit assemblies on 64-bit systems and code compiled for AnyCPU will not load 32-bit dlls.

当你使用NGEN你会避免JIT编译,装配和组装将是原生x86 code时86也x64系统上编译。

When you use NGEN you will avoid JIT-compiling of the assembly and the assembly will be native x86 code when compiled with x86 also on x64 systems.

这篇关于NGEN 86 VS 64与.NET可执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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