iSqueak Wikki : ioFindExternalFunctionIn

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [452]

Most recent edit made on 2010-09-12 23:23:43 by JohnMcIntosh

Additions:
rewritten unix code


Deletions:
TBD




Revision [330]

The oldest known version of this page was edited on 2008-10-22 03:10:04 by JohnMcIntosh

void *ioFindExternalFunctionIn(char *lookupName, void *moduleHandle)


Parms:
lookupName char * to function name
moduleHandle magic number that identifies the module

return:
entry address of the function, later we jump to that address hoping to execute code, or zero

From: Interpreter
Why:
Need to load entry point of function for later use in a procedure call

Responsibility:
must return zero, or a valid address of executable code.

MacIntosh
os-9/OSXCarbon
copy of the unix code

Cocoa:
TBD

iPhone
Not supported

Unix
invokes dlsym() returns the address of the code or data location specified by the null-terminated character string symbol. Which libraries and bundles are searched depends on the handle parameter.

Windows
Simple, GetProcAddress

BUGS

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in -0.4217 seconds