将汇编编译为x64有什么优点吗? [英] Are there any advantages to compiling an assembly as x64?
问题描述
假设我有一个需要在x86和x64平台上运行的.Net Framework 3.5 SP1 / CLR 2.0应用程序。假设无论出于什么原因,我需要创建单独的x86和x64安装程序。
Suppose I have a .Net Framework 3.5 SP1/CLR 2.0 application which needs to run on both x86 and x64 platforms. Suppose as well that for whatever reason, I need to create separate x86 and x64 installation programs.
由于我有一个x64特定的安装程序,无论如何,将有任何好处将应用程序本身重新编译为x64,而不是定位AnyCPU?
As I have an x64-specific installer anyway, would there be any benefit to recompiling the application itself as x64 rather than targeting "AnyCPU"?
除了生成的程序集的头信息,目标是否改变为x64? >
Does setting the target to x64 change anything at all besides the header information of the generated assembly?
推荐答案
如果指定x64,它会更改程序的一些默认内存设置,使其在具有较大内存压力的程序中稍微更高性能。使用x64(链接)
If you specify x64 it changes some default memory settings for the program, making it slightly more performant in programs with a large memory pressure. Larger thread stacks are allocated when compiling with x64 (link)
这篇关于将汇编编译为x64有什么优点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!