[fpc-pascal]DXE demo uploaded
Aitor Santamaria Merino
aitor.sm at terra.es
Thu Aug 9 20:52:09 CEST 2001
(sorry as this topic became extinct some time ago, I am having troubles
with my ISP and outgoing mail)
So now it seems I have started understanding the whole concept.
> > > Some points about DXE:
> > >
> > > - The code loaded has to be totally self contained, and a
> > Does this mean that:
> > (a) it can't be linked with other DXE's
> Only via the mainprogram (passing pointers around via the mainprogram)
> > (b) it can't be linked with ANY other code (i.e. no "USES")
> > ?
> Not yet. I'm still studying for a way to do this runtime, and for
> that I have
> to fully understand the COFF format. This won't happen overnight.
Ok! Keep up the good job and let us know!
It's a pitty that one can't design some UNITs that interface with the
DXE, in order to "hide" so many pointers going here and there...
In addition, this will make the whole thing a lot easier, I suppose.
Perhaps if this support is added, the RTL can then be used...
> > > Nothing more. I'm studying on a system to enhance this at the
> > > moment. For the experimentors: Let this pointer point to a
> > > structure or function
> > > that can return more pointers to structures and functions.
> > > Via parameters to such functions, you can load global
> > > in the
> > > DXE with needed RTL functions.
> > Two more related to this, about dxe_load, when I call it, the
> DXE is
> > loaded, then executed, then it disappears from memory?
> No. Unloading is not yet possible, but not hard to implement. In
> the future
> it can be removed from memory, but that will require an explicit call.
Can it be "exitted" using DOS interrupt for it? Is that what you mean
by "explicit call"?
And if I run a program that calls DXEs, and the program dies, will the
DXE die as well?
> .DXE's also have the disadvantage that they need some memory to
> initialise(and relocate).
32 bit programs tend to eat few of the convenctional memory anyway...
A new one: Can I use DJGPP's DXE's from a FPK program, and conversely?
If only I knew more of the compiler internals, I would help you, but
unfortunately, this is not the case, so I can only wish you a good
session with that, Marco!
Thanks in advance,
More information about the fpc-pascal