How can I access all bytes of RAM and ROM of my computer?

前端 未结 3 1828
名媛妹妹
名媛妹妹 2021-01-22 08:53

I tried pointers and reference(&) but when I try to get the info(I am only reading from memory) computer \"beeps\" and program terminates. NO problem when assigning a pointe

3条回答
  •  渐次进展
    2021-01-22 09:41

    You can't. Modern OSes use virtual mode and memory protection which don't permit this. To access all physical RAM, you'll most likely need to write your own OS or a kernel driver for an existing OS.

提交回复
热议问题