是否有任何优势,编译程序集的64位? [英] Are there any advantages to compiling an assembly as x64?

查看:126
本文介绍了是否有任何优势,编译程序集的64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个.net Framework 3.5 SP1中/ CLR 2.0应用程序,它需要在x86和x64平台上运行。假设以及无论出于何种原因,我需要创建单独的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.

由于我有一个64位的具体安装反正会有任何好处重新编译应用程序本身为64,而不是针对值为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它改变了一些默认的内存设置为程序,使它稍稍与大内存pressure程序更好的性能。较大的线程栈都使用x64编译时(分配<一个href="http://social.msdn.microsoft.com/forums/en-US/netfx64bit/thread/a0dff889-3c95-47d9-bcc6-b0f50e633be7"相对=nofollow>链接)

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)

这篇关于是否有任何优势,编译程序集的64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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