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 X-Sender: eliz AT is To: Charles Sandmann 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.