There usually is an operating system call that you feed a "symbol" to that 
gives you a memory address. 
This address could be: 

(a) the start address of executable code.
(b) the start address of read only, or read/write storage for a data element of 
some sort.

This is kinda of exposed in the VM api via 

        VM->ioLoadModuleOfLength = ioLoadModuleOfLength;
        VM->ioLoadSymbolOfLengthFromModule = ioLoadSymbolOfLengthFromModule;



On 2010-03-25, at 7:50 PM, Schwab,Wilhelm K wrote:

> Hello all,
> 
> Does Squeak/Pharo FFI offer a way to get the address of a function in a 
> library?  The target of interest is probably more of an exported global 
> containing a pointer, but GetProcAddress() worked on Windows, and I am 
> assuming a similar trick will be required on Linux.
> 
> Bill
> 
> 

--
===========================================================================
John M. McIntosh <[email protected]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to