DLL'ing the GC

0ffh frank at youknow.what.todo.interNETz
Thu Jan 3 01:02:01 PST 2008


Dan Lewis wrote:
> [...]
> I've since been working on my tokenizer while I waited for a
> response.  I'll probably carry on with that for the rest of today in
> hopes someone has the patience for me.

I don't think it's about patience. It's more like it's... nontrivial. =)

I don't know from the top of my head. While I think it's possible to
reassign the work from the EXE's GC to the DLL's at runtime, I'm not
so sure about how you will create the EXE in the first place without
linking it to the GC. You would have to have a kind of proxy GC-lib
that provides all the necessary symbols and minimal memory management
(allocation) until the GC-in-the-DLL is loaded. You then recompile
you runtime lib (Phobos or Tango, btw?) with that GC-"stub".

All that sounds like a long, nontrivial process, and will probably
not be explained exhaustively in one posting, as you'll have to do
it in order to know what exactly you have to do. =)

regards, frank


More information about the Digitalmars-d-learn mailing list