www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/21/16:26:24

Sender: nate AT cartsys DOT com
Message-ID: <358D6B3C.F67DAC2F@cartsys.com>
Date: Sun, 21 Jun 1998 13:21:16 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: aYk <yorka AT dlc DOT fi>
CC: djgpp AT delorie DOT com
Subject: Re: Plugins with djgpp
References: <358d0a71 DOT 3634475 AT news DOT kfunigraz DOT ac DOT at> <358d275f DOT 243624 AT news DOT dlc DOT fi>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019