Re: Loadable module support
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.make.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: Paul Smith <[email protected]> > Date: Sat, 14 Jan 2012 23:22:32 -0500 > > This design is informed by the way POSIX systems work (dlopen(), > dlsym()). I wonder how this would work, or not work, with alternative > dynamic loaders such as Windows (I assume MacOS uses POSIX semantics as > well)? Windows has an API similar to `dlopen', called LoadLibrary, and an API similar to `dlsym', called GetProcAddress. So it should be easy to have an abstract interface that will have different implementations in the Posix and Windows ports. Btw, are you going to use libffi for this facility?