C Programming - Hardware Programming

Can someone help me on suggesting some ways to access the memory content in RAM directly from C/C++ source code.
Please provide me any book name or any URL so that I can get an exhaustive
knowledge over it.

If possible please give me some tips on interacting with hardwares directly
through C programmes.

"Interact directly with the hardware", that's the kernel's function, so, you need to learn Linux Kernel Module Programming, there are a lot of books out there.

It's advanced programming, but not hard programming.

Can you please be more specific in your question? :slight_smile:

Variables that you declare and store contents are in heap which are in RAM

Yes actually I have some informations stored in to the ram , let say when the programme is running. So , I want to access to those informations using my c++ programme.

Means to say exactly I want to access the memory content in RAM directly from my c++ programme.

But Thanks to all of you for your commets....
Please update me a lot on this .....