www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/09/13:58:47

Date: Wed, 9 Apr 1997 20:35:32 -0300
Message-Id: <9704092335.AA18118@eed.miee.ru>
From: "Oleg Yu. Polyanski" <luke AT eed DOT miee DOT ru>
To: zilym AT imap1 DOT asu DOT edu
Cc: djgpp AT delorie DOT com
Subject: Re: Loading code at runtime
Newsgroups: comp.os.msdos.djgpp
In-Reply-To: <5ifise$okb@netra.montana.edu>
References: <5hufkb$pav AT news DOT asu DOT edu>
<5ifise$okb AT netra DOT montana DOT edu>

Paul Peavyhouse writes:
 > In article <5hufkb$pav AT news DOT asu DOT edu>, zilym AT imap1 DOT asu DOT edu wrote:
 > >        Is there a way to load a file from disk at runtime that would 
 > >contain compiled code and then execute routines from within it? 

	Two things would help you:

	1) DXE modules. You can find information in DJGPP FAQ but
remember if you call *any* functions located in libc from DXE module you
should pass array of pointers to that functions also and use them
instead of *real* functions. Don't forget to patch <sys/dxe.h> if you
call _dxe_load from C++ program. If you're intersted - email me.
	2) DLM modules. This way is more acceptable (it's more general
mechanism) - look at: ftp://spy.isp.nsc.ru/sys/pub/dlm for more
information.

-- 
Sincerely yours, necrofriend.

- Raw text -


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