使用 Visual Studio (vcvarsall.bat) 编译时选择什么 64 位目标?

发布于 2024-08-01 13:53:14 字数 238 浏览 1 评论 0原文

执行构建环境设置的 vcvarsall.bat 允许您在 x86 | x86 之间进行选择。 ia64 | amd64 | x86_amd64 | x86_ia64。

第一个选项对于 32 位来说是显而易见的,但问题是:如果您想针对 64 位进行构建并且希望在所有 64 位计算机上运行,​​那么其他 4 个选项中的最佳选项是什么。

假设您没有时间/资源为 64 制作 4 个版本,而您必须只选择其中之一?

The vcvarsall.bat that does setup de build environment let you choose between x86 | ia64 | amd64 | x86_amd64 | x86_ia64.

First option is obvious for 32bit, but the question is: what would be the optimal option between the other 4 if you want to build for 64bit and you want to run on all 64 bit machines.

Let say that you don't have time/resources to make 4 builds for 64 and you have to choose only one of them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

套路撩心 2024-08-08 13:53:14

我发现一个页面澄清了此问题 http://msdn .microsoft.com/en-us/library/x4d2c09s%28VS.80%29.aspx

  • 32/64 操作系统构建 32 => x86
  • 32 位操作系统构建 64 位 => x86_amd64
  • 64 操作系统构建 64 => amd64

您可以忽略其他选项,因为安腾没有真正的市场份额。

I found a page that clarifies this issue http://msdn.microsoft.com/en-us/library/x4d2c09s%28VS.80%29.aspx

  • 32/64 OS building for 32 => x86
  • 32 OS building for 64 => x86_amd64
  • 64 OS building for 64 => amd64

And you can ignore the other options because Itanium does not have a real market share.

≈。彩虹 2024-08-08 13:53:14

ia64 (Itanium) 是一个非常冗余的 CPU(Google 的 ia64 市场份额),只有当您要部署到该架构时才应该使用它。

x86_amd 用于在 amd64 架构上运行 32 位,仅当您的代码无法在 amd64 下编译/工作时才使用它。

ia64 (Itanium) is a very redundant CPU (Google for ia64 market share) and you should use it only if you're going to deploy to that architecture.

x86_amd is for running 32 bit on amd64 architecture, use it only if your code doesn't compile/work under amd64.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文