32位程序在64位OS上运行时相对于在32位OS中本机运行时相对慢吗? [英] Do 32 bit programs run relatively slower on 64 bit OS against when they are natively run in 32 bit OS?

查看:144
本文介绍了32位程序在64位OS上运行时相对于在32位OS中本机运行时相对慢吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

,并了解到它在64位Windows操作系统中可以运行32位程序。

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

所以我可以假设32位程序在64位OS上运行相对较慢,而在32位OS中本机运行。

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.

我可以看到在64位操作系统中,内存访问量超过4 GB。但是,这种优势是否一定抵消了WOW64层增加的少量开销? 64位系统是否还有其他优势可以弥补这一点。

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.

推荐答案

64位系统的主要优势在于它允许64位模式下的应用程序,反过来,如果您需要访问超过4GB的内存,则主要有用。如果有此要求,则使用64位系统是唯一的选择。您的应用程序将使用64位代码,因此不会使用WOW64,因此不会引起问题。

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.

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

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.

我个人认为,很多人安装64位Windows,是因为他们不完全了解这样做的后果,但感觉到出于安全考虑(由于缺少驾驶员,他们可能不会这样做)。

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).

这篇关于32位程序在64位OS上运行时相对于在32位OS中本机运行时相对慢吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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