[DGD] hook functions for compile/recompile/destruct for programs (and related data)
Carter Cheng
cartercheng at gmail.com
Sun Aug 22 07:44:57 CEST 2010
Hi Felix,
Thanks for the help. I do have one follow up question that so far I
have not been able to figure out. For a given control block how are
the functions organized and indexed and identified by something like
call other when a call is made? If you could answer this it would help
me greatly.
Thanks,
Carter.
On Sat, Aug 21, 2010 at 5:18 AM, Felix A. Croes <felix at dworkin.nl> wrote:
> Carter Cheng <cartercheng at gmail.com> wrote:
>
>> I am kind of new at this and I have been looking for the hook
>> functions for these things to interface with the JIT system (and how
>> to find information about which programs are in memory and the related
>> methods/functions). If someone could point me in the right direction I
>> would appreciate it. Relaunched the JIT project anyhow.
>
> In DGD, the program of an object is the "control block", in which there
> is a "program" field for the byte code and line number information.
> The control block is constructed in src/comp/control.c. Recompiling an
> object completely replaces its control block; this is done in
> src/comp/compile.c::c_compile().
>
> The control block and the "dataspace" of an object are declared in
> src/data.h, and are managed by src/data.c (high level) and src/sdata.c
> (low level).
>
> (I have to cut this short, if you have further questions I will try to
> answer them later.)
>
> Regards,
> Felix Croes
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>
More information about the DGD
mailing list