loadobj.h

This interface supports dynamic loading of functions from object files. Any references in the object file to previously defined objects are allowed, but no additional searching or unresolved references are supported.
Functions
loadObject(pathname) Loads the object file into the current executable.
loadSymbols(progname) Loads the symbols from the executable program.
findFunction(fnname) Looks up the function in the symbol table and returns a pointer to the code.

Function detail


void loadObject(string pathname);
Loads the object file into the current executable.

Usage:

loadObject(pathname);

void loadSymbols(string progname);
Loads the symbols from the executable program.

Usage:

loadSymbols(progname);

proc findFunction(string fnname);
Looks up the function in the symbol table and returns a pointer to the code.

Usage:

fn = findFunction(fnname);