delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
Date: | Tue, 12 Feb 2002 10:28:55 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Charles Sandmann <sandmann AT clio DOT rice DOT edu> |
cc: | djgpp-workers AT delorie DOT com, rudd AT cyberoptics DOT com |
Subject: | Re: Alignment problem |
In-Reply-To: | <10202112024.AA29687@clio.rice.edu> |
Message-ID: | <Pine.SUN.3.91.1020212102845.4485C-100000@is> |
MIME-Version: | 1.0 |
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 |
On Mon, 11 Feb 2002, Charles Sandmann wrote: > Another idea: > > We could add a sbrk(0) call before calling sbrk() with the expected > size - and if it's aligned the sbrk() value should be also. If > sbrk(0) not aligned, we sbrk() the small number of bytes to align - > which will always work (unless there's a equality bug right at the > boundary in sbrk...) I like this idea better: it will probably lead to a simpler and more localized implementation.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |