in reply to How to access the contents of a specific memory address?
Perl cannot access an absolute physical memory address.
In "C" there are ways to "map" a piece of physical memory to an array - maybe for memory mapped I/O?
But such a thing has to run as a kernel process (device driver, etc).
A user process like Perl simply cannot do it. Thats it.
A user process can access its own DATA space, but this is an offset from a physical address of which the user process is completely unaware - the hardware does some magic. Since Perl is a "user" process, it cannot know and it cannot access an actual physical memory address like say, "0x000" - the OS will prevent such a thing - its just that simple. NO, Absolutely NOT!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to access the contents of a specific memory address?
by BrowserUk (Patriarch) on Jul 30, 2012 at 01:16 UTC | |
by Marshall (Canon) on Jul 30, 2012 at 08:00 UTC | |
by BrowserUk (Patriarch) on Jul 30, 2012 at 13:29 UTC |