X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Sat, 09 Feb 2002 09:06:16 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-Id: <9003-Sat09Feb2002090616+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200202081853.g18IrgO08699@envy.delorie.com> (message from DJ Delorie on Fri, 8 Feb 2002 13:53:42 -0500) Subject: Re: Alignment problem References: <3C629769 DOT AEAFB611 AT cyberoptics DOT com> <379-Fri08Feb2002101042+0200-eliz AT is DOT elta DOT co DOT il> <200202081420 DOT g18EKWb06863 AT envy DOT delorie DOT com> <7872-Fri08Feb2002203948+0200-eliz AT is DOT elta DOT co DOT il> <200202081853 DOT g18IrgO08699 AT envy DOT delorie DOT com> 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 > Date: Fri, 8 Feb 2002 13:53:42 -0500 > From: DJ Delorie > > Malloc doesn't need to align to "optimum" alignment. It only needs > align to "required" alignment. I'm not sure I understand this: what is the ``required'' alignment for a buffer that is 8 bytes large or larger? Isn't the required alignment for these buffers 8-byte alignment? That is, if I malloc a double, shouldn't I expect to get a double aligned on 8-byte boundary?