Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Wai Teng , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Alignment Date: Sat, 23 May 1998 22:58:10 -0700 Message-ID: <19980524055757.AAG22535@ppp108.cartsys.com> Precedence: bulk +At 10:41 5/23/1998 -0700, Wai Teng wrote: >Can anyone please tell me if memory allocated by malloc or >__dpmi_allocate_memory is aligned? If so, are they aligned on 2bytes, >4bytes, 8bytes or 16bytes boundary? `malloc' memory is aligned to at least 4 bytes, and I believe 8. As far as `__dpmi_allocate_memory', I don't know, but you could check the DPMI spec at www.delorie.com. It may well be page-aligned. Nate Eldredge nate AT cartsys DOT com