Mail Archives: djgpp-workers/1997/09/11/09:56:11
On Thu, 11 Sep 1997, Diego Zuccato wrote:
> 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.
DJ told me that the reason for enlarging the transfer buffer is to make
larger command lines possible. If that is the *only* reason, then the
code to allow for this is already in the libc sources, it is just
disabled by an #ifdef. (It allocates a larger buffer when spawning a
program, based on the actual length of the command line + the environment
we pass to the child.)
I think this enabling that code is much easier than saving/restoring the
global transfer buffer.
> > and store the DOS pointer somewhere (say, an unused interrupt
> > vector?).
> Maybe one of those 'reserved' for ROM BASIC ? :-)
Err, didn't Charles just say that the IDT is also private in DPMI 1.0?
If so, doesn't this preclude using the interrupt table for storing the
address? Charles?
> 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.
More code bloat in the spawn functions, and more possible combinations
when spawning child programs. Sigh...
- Raw text -