Mail Archives: djgpp/1998/06/21/16:26:24
aYk wrote:
>
> POSSIBILITY #1 - Extra functionality:
> -------------------------------------
[snipped]
> POSSIBILITY #2 - Realtime instruction interpretation:
> -----------------------------------------------------
[deleted]
> POSSIBILITY #3 - Compile-time object files:
> -------------------------------------------
[expunged]
> >
> >does anybody have experiences with implementing external plugins into
> >a program compiled with djgpp? in my program i have a class which i
> >want to load as a plugin from a file (probably .o-file)
> >
POSSIBILITY #4 - Dynamic loading
There are a variety of schemes available to load some chunk of code at
runtime. The simplest is called DXE; it is built into DJGPP. Its major
restriction is that the parent gets only a pointer to a single object in
the DXE file; and the DXE cannot call functions in the parent. Also, it
is rather sparsely documented. There are other, better dynamic linking
tools in the v2tk/ directory on Simtelnet; have a look.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -