Mail Archives: djgpp/2000/07/25/09:41:22
A quick test in Linux resulted in a program that will correctly load and
execute the DXE test file compiled by DJGPP. Of course this was an
extremely simple case...
Surely, though, the DXE mechanism involves nothing more than loading a piece
of machine code into memory and CALLing it. Doesn't this mean that as long
as the instruction set doesn't change(*), a DXE will be binary portable? (*
I actually expect the function calling mechanism, etc., would have to remain
the same, too.)
DXE modules have a hard time using any DOS or DPMI functions, they tend to
rely on the calling program for that...
Anyway, I thank you for your reasoning.
Edmund.
> > Considering a compiled DXE is virtually no more than pure machine code,
> > would a DXE compiled with DJGPP run fine with a program under Linux
> > (assuming the DXE mechanism was ported to linux, of course).
>
> Probably not.
>
> > That is, is the only difference between DJGPP and gcc for Linux the
> > libraries?
>
> No, that's not the only difference. DJGPP uses a different object code
> format (COFF as opposed to ELF). In addition, a DXE may, depending on
> what's in it, call DOS or DPMI functions which, of course, won't work on
> Linux.
- Raw text -