与在 32 位操作系统中本机运行相比,32 位程序在 64 位操作系统上运行速度是否相对较慢?

发布于 2024-10-08 17:25:29 字数 320 浏览 0 评论 0原文

我在这里阅读有关 WOW 64 的内容 http://en.wikipedia.org/wiki/WOW64

并了解到它是 64 层位 Windows 操作系统来运行 32 位程序。

因此,我是否可以假设 32 位程序在 64 位操作系统上运行的速度相对于在 32 位操作系统中本机运行的速度要慢。

我可以看到 64 位操作系统中超过 4 GB 内存访问的优势。但这个优势一定能抵消WOW64层增加的小开销吗? 64 位还有其他优势可以抵消这一点吗?

I was reading about WOW 64 here
http://en.wikipedia.org/wiki/WOW64

and learnt that its a layer in 64 bit Windows OS to run 32 bit programs.

So can I assume that 32 bit programs run relatively slower on 64 bit OS against when they are natively run in 32 bit OS.

I can see the advantages of memory access of over 4 GB in 64 bit OS. But does this advantage necessarily offset the small overhead added by layer of WOW64 ? Are there any other advantages of 64 bit which offset this.

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

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

发布评论

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

评论(1

↙厌世 2024-10-15 17:25:29

64 位系统的主要优点是它允许应用程序处于 64 位模式,而如果您需要访问超过 4GB 的内存,则该模式非常有用。如果您有这样的需求,那么使用 64 位系统是您唯一的选择。您的应用程序将使用 64 位代码,因此不会使用 WOW64,因此不会导致问题。

如果您确实没有在单个进程中使用超过 4GB 内存的要求,那么 64 位 Windows 是否真的是一种改进就变得值得商榷。如果您想使用超过 4GB 的主内存,您可能需要 64 位 Windows(尽管您也可以使用 PAE,但这有其自身的缺点)。不过,在 64 位系统上,您可以运行 64 位应用程序。对于 AMD64 处理器,64 位模式可能比本机 32 位模式更快,因为处理器具有更多寄存器。这种轻微的收益是否大于轻微的损失。 WOW64 取决于您的应用程序组合。

就我个人而言,我认为许多人安装 64 位 Windows 是因为他们不完全了解这样做的后果,但觉得这样做是安全的(但由于缺乏驱动程序,他们可能不会这样做)。

The main advantage of a 64-bit system is that it allows applications in 64-bit mode, which, in turn, is primarily useful if you need to access more than 4GB memory. If you have that requirement, using a 64-bit system is your only choice. Your application would be using 64-bit code, so WOW64 would not be used, and thus not cause problems.

If you don't really have the requirement to use more than 4GB of memory in a single process, it becomes debatable whether 64-bit Windows is really an improvement. You might need 64-bit Windows if you want to use more than 4GB of main memory at all (although you can also use PAE for that, which has its own disadvantages). Still, on a 64-bit system, you can run 64-bit applications. With AMD64 processors, 64-bit mode might be faster than native 32-bit mode, because the processor has more registers. Whether this slight gain outweighs the slight loss wrt. WOW64 depends on your application mix.

Personally, I think many people install 64-bit Windows because they don't fully understand the consequences of doing so, but feel they are on the safe side (which they may not, due to the lack of drivers).

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