Implementation of load_foreign_executable/1

This section gives some information on the implementation of load_foreign_executable/1, which may help in solving more difficult foreign code loading problems. This information applies when the foreign code is being loaded dynamically on top of the Development System. Refer to sap-srs for information on how foreign code is linked into a stand-alone program.

load_foreign_executable/1 loads a shared object file by calling the library function dlopen(3) (UNIX) or LoadLibrary() (Windows). This automatically loads any shared libraries that are stored as dependencies in the file.