Mail Archives: djgpp-workers/1997/11/25/09:58:15
> On Mon, 24 Nov 1997, Charles Sandmann wrote:
>
> > Images should always start as unixy sbrk(), and convert to non-move
> > only as required by out of memory, nearptr_enable, crt0 flag, or maybe
> > environment var. Non-move sbrk() should use variable block sizes to
> > prevent the out of memory handles problem.
>
> These seem to me as two independent enhancements. Am I correct in
> assuming that the automatic switch to non-move sbrk can be implemented
> independently of the non-move sbrk enhancements?
Yes, they are separate. Both are relatively simple. The variable block
size hack flanges in perfectly (it's a 2-3 line assembly change).
> If so, is there something in the current design that should prevent
> adding the automatic switch in the most naive way (i.e., in all the cases
> you named just set the flag)?
The hard part is catching the failure, setting the flag, and trying again,
keeping the registers in crt0.s straight in all the cases. There is the
issue of the low memory unixy sbrk code - this can probably be improved
upon to use the transfer buffer.
- Raw text -