Phobos and Tango deep dependancies
Sean Kelly
sean at f4.ca
Tue Oct 2 10:00:37 PDT 2007
Gilles G. wrote:
> Hello all,
> I noticed that using the phobos library on windows make the executables depend on a huge list of delay loaded DLLs and also 5 "always loaded" DLLs (the list is below).
> I also tried the Tango library and the situation seems to be even worse...
Tango has an additional dependency which is used to turn the code page
command-line arguments into UTF-8. If Windows ever moves to a full
Unicode console, this dependency can be dropped.
> I would like to know why this dependancies exists and if there is something I can do to reduce them (maybe recompile phobos with some options?).
They are kernel DLLs for the most part. Walter would probably be best
suited to answer this though, since the dependencies are more likely a
side-effect of linking the DMC C runtime (snn.lib, I believe), which is
an implicit part of every D program on Win32/DMD. The exception
handling mechanism, for example, uses Windows Structured Exception
Handling by necessity, and this has Win32 kernel dependencies.
Sean
More information about the Digitalmars-d
mailing list