Mail Archives: djgpp-workers/2001/07/28/12:12:15
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
> Date: Sat, 28 Jul 2001 10:11:44 -0500 (CDT)
>
> If you get a lower address, we try to address wrap. On NT the limit set
> silently gets truncated from a 4Gb limit to a 2Gb limit
Right, I forgot about that NT subtlety.
> 2) I think we should ignore (keep allocated but not touch) any blocks which
> are returned to us lower than the base, and try again.
> 3) We may need some way to toggle the default for testing to prevent having
> to rebuild everything. In the past I had an exe which binary patched all
> the EXEs to toggle the default meaning.
Is it true that Unixy sbrk is a much better default on NT and W2K? 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.)
- Raw text -