D runtime as DLL D runtime as DLL windows windows

D runtime as DLL


Currently, Phobos is available as pre-built LIB file, which is statically linked to your executable during compilation.

This has some advantages to DLL:

  • Deployment - you can be always sure that your executable have appropriate runtime/gc/phobos available - the one which is tested with your application. There is new version of Phobos and D runtime every month, using DLLs in this case could cause versioning problems.

Disadvantages

  • Executable size is slightly larger (100s of kb)
  • Every "unit" exe / dll has its own garbage collector.

Why are you researching options of using DLL for Phobos? What insufficiencies do you seen in using LIB ?