Mail Archives: djgpp-workers/1997/09/11/07:58:32
DJ Delorie wrote:
> It would be reasonable for the first stub loaded to allocate 64k or
> more of dos memory,
64K should be enough. (Uh, deja-vu :-) ) And it shouldn't too hard to
modify startup code to save it to flat memory on startup and restore it
when exiting main() or when a fatal error (Exception 13 or similars)
occours.
> and store the DOS pointer somewhere (say, an unused interrupt
> vector?).
Maybe one of those 'reserved' for ROM BASIC ? :-)
> Heck, we've still got 32 bytes of space in the stub! Plenty for this.
Uh, since different stub releases are often incompatible and utilities
themselves could create troubles (eg using 2.00 bins mixed with 2.02
bins), why not use 2 of those 32 bits for a 'release' magic number ?
So, when installing a new package (eg make) that needs to call other
executables, it could check that version number to be sure that no known
troubles will arise.
- Raw text -