Date: Tue, 22 Jul 1997 13:26:43 -0400 (EDT) From: "Art S. Kagel" To: Jeff Weeks Cc: djgpp AT delorie DOT com Subject: Re: does DJGPP dword align memory allocations? In-Reply-To: <33D426F1.E0D543E@execulink.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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