www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/22/13:28:02

Date: Tue, 22 Jul 1997 13:26:43 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Jeff Weeks <pweeks AT execulink DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: does DJGPP dword align memory allocations?
In-Reply-To: <33D426F1.E0D543E@execulink.com>
Message-Id: <Pine.D-G.3.91.970722132439.10652H-100000@dg1>
Mime-Version: 1.0

On Mon, 21 Jul 1997, Jeff Weeks wrote:

> I think the subject is self explanatory :)
> 
> I'd like to know if DJGPP will dword align memory allocations.  Can I be
> sure that if I allocate memory that it'll be aligned on a dword
> boundary?
> 
That depends on what you call a dword.  DJGPP memory allocations (ie 
malloc) is alligned on 4byte address boundaries, so if you mean a double 
16bit PC compiler word, yes.  However, if by dword you mean a double 32bit 
DJGPP word, no.

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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