www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/24/02:04:22

Mime-Version: 1.0
To: Wai Teng <gnatwt AT mailexcite DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Alignment
Date: Sat, 23 May 1998 22:58:10 -0700
Message-ID: <19980524055757.AAG22535@ppp108.cartsys.com>

+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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019