32位程序可以在64位OS上使用超过4GB的内存吗? [英] Can a 32-bit program use more than 4GB of memory on a 64-bit OS?

查看:76
本文介绍了32位程序可以在64位OS上使用超过4GB的内存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行在64位操作系统上的32位程序是否可以使用超过4GB的内存?

Is a 32-bit program running on a 64-bit OS able to use more than 4GB of memory if available?

推荐答案

简单的答案是:是. 更长的答案取决于.页面重新映射具有硬件支持,基本上可以使程序的页面只有几页的窗口进入更大的内存区域. 但是,此窗口应由程序本身管理,并且不会从内存管理器获得支持.在Windows上有类似SQL的程序示例. 但是,总的来说,这是一个坏主意,该程序应限制自身为4GB或移至64位:)

Short answer is: yes. Longer answer is depends. There is a hardware support for page re-mapping, which basically gives your program a window of a few pages into a larger area of memory. This window is however, should be managed by the program itself and will not get support from memory manager. There are examples of programs doing that like SQL on Windows. However, in general it is a bad idea and the program should either limit itself for 4GB or move to 64bits :)

这篇关于32位程序可以在64位OS上使用超过4GB的内存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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