GC vs. Manual Memory Management Real World Comparison

Jakob Ovrum jakobovrum at gmail.com
Thu Oct 25 01:50:17 PDT 2012


On Thursday, 25 October 2012 at 08:34:15 UTC, Rob T wrote:
> My understanding of dynamic linking and the runtime is based on 
> this thread
>
> http://www.digitalmars.com/d/archives/digitalmars/D/dynamic_library_building_and_loading_176983.html
>
> The runtime is not compiled to be sharable, so you cannot link 
> it to shared libs by defult. However, hacking the gdc build 
> system allowed me to compile the runtime into a sharable state, 
> and all seemed well.
>
> However, based on the input from that thread, my understanding 
> was that the GC would be unreliable at best.
>
> I suppose I could do some tests on it, but tests can only 
> confirm so much. I'd also have to decipher the runtime source 
> code to see what the heck it is doing or not.
>
> --rt

You are right that compiling the runtime itself (druntime and 
Phobos) as a shared library is not yet fully realized, but that 
doesn't stop you from compiling your own libraries and 
applications as shared libraries even if they statically link to 
the runtime (which is the current default behaviour).



More information about the Digitalmars-d-announce mailing list