Ok, say I write a simple C program to be run under Linux distro Ubuntu on the X Window System.
I declare an 8-bit pointer to the specified literal address that is mapped for a specifoc purpose, such as monochrome video memory mapped for the addreas decoder. Is it dependent on Linux to have virtual memory supersede this in the kernel to avood memoty overwrites?
What I am asking in general is, when specifying literal memory addresses, when can I know for certain if it is virtual, and how can I step by step determine virtual processes and instructions on a physical level, so I will know the conversion details.
I realize this is not particularly for swap space or paging, but in general virtual memory implememted in the kernel for process isolation and segregation in particular. I hope my question is clear enough. If not, I will ask once more:
When declaring literal memory addresses, and under control of virtual memory translated to physical addresses, how can I step through the conversion of this to accurately get more of a detailed perspective on how my literal addresses are not literal at all until an MMU or MPU takes care of this?