www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/26/19:30:28

From: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Alignment
Date: Tue, 26 May 1998 18:22:27 +0000
Organization: Southwest Missouri State Universtiy
Lines: 12
Message-ID: <356B0863.81307289@nic.smsu.edu>
References: <3567B2FB DOT 6F90D101 AT mailexcite DOT com>
NNTP-Posting-Host: marie.a48.smsu.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?

The Linux man page says that the buffers returned by malloc() and
calloc() are "suitably aligned for any kind of variable."  I don't know
about __dpmi_allocate_memory, though.



- Raw text -


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