Dynamic Class Loading Idea

Vladimir Panteleev thecybershadow at gmail.com
Sat Nov 3 13:01:25 PDT 2007


On Sat, 03 Nov 2007 20:47:58 +0200, Craig Black <craigblack2 at cox.net> wrote:

> "Daniel Keep" <daniel.keep.lists at gmail.com> wrote in message
> news:fgi777$na4$2 at digitalmars.com...
>>
>>
>> Craig Black wrote:
>>>> I like DDL's approach, in which it acts as a run-time linker. It uses
>>>> relocation data in OBJ files to find address references and fix them
>>>> (thus "relocating" the code for any memory address) when loading the
>>>> libraries.
>>>
>>> Does this relocation use function pointers?
>>
>> Here's how I understand it.  DDL is a linker.  The only difference
>> between DDL and dmd/gcc is that it works at run time instead of compile
>> time.
>>
>> What you described is basically what a linker does, hence what DDL does.
>>
>> -- Daniel
>
> That's pretty cool then.  Since we have DDL, can we effectively say that we
> have dynamic class loading?  Or are features missing from DDL that make it
> not a full dynamic class loader?

DDL is, at the moment, defunct when it comes to compatibility with newer versions of the compiler - and it has been so for a while now. There have been recent talks of someone getting their hands dirty and bringing it up-to-date.

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



More information about the Digitalmars-d mailing list