Cross-platform dynamic libraries (GNU/Linux, Mac OS X, Windows, ...)

Vladimir Panteleev thecybershadow at gmail.com
Wed Sep 5 11:57:57 PDT 2007


On Wed, 05 Sep 2007 20:55:14 +0300, Gregor Richards <Richards at codu.org> wrote:

> Windows DLL's will never be capable of full, proper support until phobos
> is in a .dll. Even then, if there was conflicting typeinfo, it could
> still fail. However, DDL ought to cover it there.

I wonder how hard it would be to develop a native-code cross-platform plug-in architecture for the IA32 platform. The idea is that the "plugins" are compiled to native code, either position-independent or with relocation information, and don't contain any of the standard library. Instead, on initialization, the main, platform-dependant application passes the plug-in a structure filled with function/global var pointers, which have a cross-platform ABI, which will allow the plugins to access the standard library and other host app functionality.

Sounds theoretically feasable? I think there are no problems with the idea as long as there are no platform-dependant data types.

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list