Don't ask to ask, just ask | |
PerlMonks |
Re: How to access the contents of a specific memory address?by Marshall (Canon) |
on Jul 29, 2012 at 23:16 UTC ( [id://984320]=note: print w/replies, xml ) | Need Help?? |
Basically the posts here not with standing: The answer is NO. 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? 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!
In Section
Seekers of Perl Wisdom
|
|