Mail Archives: djgpp/2000/02/16/04:37:27
DJ Delorie <dj AT delorie DOT com> writes:
> You can put in *any* dos program
> (except djgpp programs, which already have something after the stub)
> as the PE stub.
You can use even djgpp programs: first a slightly modified djgpp stub,
then the PE executable, _then_ the djgpp COFF image.
Now that I think about it, you might even be able to make a dual
DOS/Windows program that shares most of its code in both environments:
first the aforementioned real-mode stub that loads a COFF stub, then PE
stub that loads the actual COFF image and provides necessary interface
to native Windows system calls, then the COFF stub that also loads the
actual COFF image and provides interface to DPMI and DOS calls, then the
actual COFF image which runs on both DOS and Windows and uses the
interface provided by the stub for system calls. Now wouldn't _that_
be nice? ;-)
--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/
- Raw text -