Loading and Executing Object Code at Runtime

Michael I Bushnell mib at geech.ai.mit.edu
Fri Mar 1 18:28:54 AEST 1991


Someone asked:

   >I'm wondering how to load an object file (my_functions.o) at execution
   >time and execute a function contained therein.  I know this is possible
   >since many flavors of LISP allow you to compile your functions and then
   >load the compiled versions later.
   >
   >If it's in TFM, could someone point me in the right direction, or, if it's
   >trivially simple, could someone please explain how to go about it?

It should be noted that dld, the dynamic loader, available from the
Free Software Foundation, does this task nicely.  You can get it as
/pub/gnu/dld-3.2.1.tar.Z on prep.ai.mit.edu.

	-mib



More information about the Comp.unix.wizards mailing list