Mail Archives: djgpp-workers/2001/07/28/12:24:42
> Is it true that Unixy sbrk is a much better default on NT and W2K?
Probably so, but there isn't a lot of testing to confirm this. If we
were to handle the wrap around the non-move sbrk() is probably just
as good.
> If so, it might be better to change the default automatically if we can
> do that without bloating the startup code. To recognize NT, all we
> have to do is call a single DOS function (3306h) and compare the
> result with 0532h: if they compare equal, we are on NT/W2K. This
> doesn't sound like a lot of code, does it?
>
> (We should still let users override this by setting bits in
> __crt0_startup_flags, in case they have reasons to do so.)
I *HATE* futzing with the crt0 sbrk code. Maybe I'll re-write it in C.
Then maybe it would get the attention it deserves.
I'd like to do more checking on the passing of signed/unsigned sbrk()
values. I'd like to increase block sizes from 64K to larger dynamically.
I think we should check the selector limit sets to see if they stick,
and if not don't use the wrap around blocks.
- Raw text -