Direct memory manipulation from perl
Posted on 2004-04-12
We have a runtime databank of addresses that are currently accessed with c-programs. I am hoping to gain the functionality of PERL in several portions of the project that are not time-critical. Is it possible to have perl directly read and edit this memory bank similarly to what c does?
For example, I would need to be able to pass a perl script a list of addresses, and then have the script read the existing data from the RAM. Also, if new variables were created, they would have to be then placed in specific/ newly dedicated locations. (There is aof course a memeory tracking scheme already in place...)
One might suggest "simply" embedding perl into C, and have C handle the addressing, but I was hoping for a more direct route. For some reason I can successfullly embed perl in Windows and in several Unix system (inc. Linux), but have been unsuccessful on Onyx (SGI) and Cygwin - the examples in perlembed are unresponsive.