Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

c

memory

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 pointer to a byte (char *). But when I read that computer beeps. ( x=*p;)

Windows xp, 1GB + 128 MB RAM. I don't know about my eproom + eeproms.

Can I use System() function to use OS commands to reach memory? Do you know any one?

like image 580
huseyin tugrul buyukisik Avatar asked Nov 18 '25 01:11

huseyin tugrul buyukisik


1 Answers

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.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!