x86 可执行文件在 64 位操作系统上可以使用多少内存? [英] How much memory a x86 excutable can use on a 64bit os?

查看:36
本文介绍了x86 可执行文件在 64 位操作系统上可以使用多少内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这个问题听起来很清楚,但要进一步解释:

I think that the question sounds clear, but for further explanation:

假设我们安装了带有 8GB RAM 的 Windows 7 x64 PC;(具有 32 位进程的 64 位操作系统是我的意图)

Suppose we have Windows 7 x64 PC with 8GB of RAM installed on it; (64bit OS with 32bit process is my intention)

问题 1:64 位进程在此环境中可以使用多少内存?

Question 1: how much memory can a 64bit process use in this environment?

问题 2:32 位进程在此环境中可以使用多少内存?

Question 2: how much memory can a 32bit process use in this environment?

问题 3:如果 32 位进程在这种环境下只能使用 2GB 的 RAM,(即使它是 LARGE ADDRESS SPACE AWARE:3GB),但是大多数游戏都是 32 位的;那么这也是意思是:虽然我们安装了 8GB 的​​ RAM,但例如游戏在任何给定时间只能使用 2-3GB 的 RAM?

Question 3: If a 32bit process can only use 2GB of RAM in this environment,(even if it is LARGE ADDRESS SPACE AWARE: 3gb), however most games are 32bit;, so does this mean that: Although we have 8gb of RAM installed, that a game for example can only use 2-3gb of RAM at any given time?

推荐答案

问题 1:64 位进程在这种环境下可以使用多少内存?

Question 1: how much memory a 64bit process can use in this environment?

它可以使用你所有的记忆.

问题 2:32 位进程在这种环境下可以使用多少内存?

Question 2: how much memory a 32bit process can use in this environment?

对于 x64 机器上的 x86 可执行文件,它默认消耗 2GB.如果设置了 IMAGE_FILE_LARGE_ADDRESS_AWARE,它可以使用 4GB.MSDN.

For x86 executable on x64 machine it consumes by default 2GB. If IMAGE_FILE_LARGE_ADDRESS_AWARE is set it can use 4GB.MSDN.

有趣的是,如果未设置或清除 IMAGE_FILE_LARGE_ADDRESS_AWARE,则 x64 可执行文件在 x64 计算机上最多可以使用 2GB.

Interesting thing is an x64 executable can use at most 2GB on a x64 machine if IMAGE_FILE_LARGE_ADDRESS_AWARE is not set or cleared.

问题 3:(我不确定)如果 32 位进程在这种环境中只能使用 2GB 的内存,(即使它是大地址空间感知:3GB),另一方面(就我而言)知道)大多数游戏都是 32 位的;所以这是否意味着:虽然我们安装了 8GB 的​​ RAM,但(例如游戏)在任何给定时间只能使用 2-3GB 的 RAM????

Question 3: (I'm not sure) If a 32bit process can only use 2GB of ram in this environment,(even if it is LARGE ADDRESS SPACE AWARE: 3gb), and on the other hand (as far as I know) most of the games are 32bit;, so does this mean that: Although we have 8gb of RAM installed, that (for example game) can only use 2-3gb of RAM at any given time????

没有它的4GB

这篇关于x86 可执行文件在 64 位操作系统上可以使用多少内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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