delorie.com/archives/browse.cgi | search |
Date: | Sat, 28 Jul 2001 13:52:22 -0400 |
Message-Id: | <200107281752.NAA28905@delorie.com> |
X-Authentication-Warning: | delorie.com: eliz set sender to eliz AT delorie DOT com using -f |
From: | Eli Zaretskii <eliz AT delorie DOT com> |
To: | sandmann AT clio DOT rice DOT edu |
CC: | acottrel AT ihug DOT com DOT au, djgpp-workers AT delorie DOT com |
In-reply-to: | <10107281620.AA14010@clio.rice.edu> (sandmann@clio.rice.edu) |
Subject: | Re: Make 3.791 on Windows 2000 test |
References: | <10107281620 DOT AA14010 AT clio DOT rice DOT edu> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Sat, 28 Jul 2001 11:20:31 -0500 (CDT) > > > 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. I wasn't suggesting to modify sbrk at all. Just get the DOS version and set the default value of the sbrk algorithm flag as appropriate. Do that before sbrk gets called for the first time, and then sbrk can be left alone.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |