如何编译我的应用程序的64位,使其更快,更好? [英] How can compiling my application for 64-bit make it faster or better?

查看:183
本文介绍了如何编译我的应用程序的64位,使其更快,更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#,.NET,VS.NET 2008

I use C#, .NET, VS.NET 2008.

除了可以解决更多的内存,有什么优势,编译我的应用程序到64位?

Besides being able to address more memory, what are the advantages to compiling my application to 64-bit?

时它会更快或更小?为什么?

Is it going to be faster or smaller? Why?

这会让其与64位系统(相比32位应用程序)?

Does it make it more compatible with a x64 system (when compared to a 32-bit application)?

推荐答案

有关的本机的应用程序,你得到更大的地址空间和诸如此类的东西的好处。然而,.NET应用程序上抽象了任何基础架构差异的CLR运行。

For native applications, you get benefits like increased address space and whatnot. However, .NET applications run on the CLR which abstracts away any underlying architecture differences.

假设你只是应付管理code,没有任何好处,以针对特定平台;你最好只是用值为anycpu标志设置(这是在默认情况下)编制。这将生成平台无关的组件,将在任何架构上运行同样的CLR上运行。

Assuming you're just dealing with managed code, there isn't any benefit to targeting a specific platform; you're better off just compiling with the "anycpu" flag set (which is on by default). This will generate platform agnostic assemblies that will run equally well on any of the architectures the CLR runs on.

专门针对(说)64是不会给你任何的性能提升,并且将prevent程序集,从工作在32位平台。

Specifically targeting (say) x64 isn't going to give you any performance boost, and will prevent your assemblies from working on a 32-bit platform.

本文有关于这个问题的更多的信息。

This article has a bit more information on the subject.

更新:在Scott Hanselman刚贴好<一个href="http://www.hanselman.com/blog/BackToBasics32bitAnd64bitConfusionAroundX86AndX64AndTheNETFrameworkAndCLR.aspx">overview本主题为好。

Update: Scott Hanselman just posted a good overview of this topic as well.

这篇关于如何编译我的应用程序的64位,使其更快,更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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