如何在c或c ++中获取(捕获)物理内存? [英] how to acquisition(capture) physical memory in c or c++ ?
本文介绍了如何在c或c ++中获取(捕获)物理内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨所有
如何在c或c ++中获取(捕获)物理内存?
从偏移0到n?
hi to all
how to acquisition(capture) physical memory in c or c++?
from offset 0 to n?
推荐答案
可能你不能 - 除了非常简单的系统外,操作系统不会让你靠近真正的内存。对于任何复杂的东西,它为您提供了一个虚拟地址空间,并且只允许您访问与您的线程相关的一些内存。
你想要什么?你认为你需要这个吗?
Probably, you can't - the operating system won't let you near the "real" memory except in very simple systems. For anything complex it provides you with a virtual address space and also only give you access to some of the memory - that associated with your thread.
What are you trying to do that you think you need this?
这篇关于如何在c或c ++中获取(捕获)物理内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文