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

前端 未结 3 1805
名媛妹妹
名媛妹妹 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:43

    You can not do this, because you have not privilege to do, when you run your code, it creates a process to run your program, and each process can only access to its address space, access to others process address space make a trap to os, and your kernel suspends works and checks your stack and your process, then it find that you did an unprivileged task, and then it kills your process

提交回复
热议问题