From: kolling@adobe.com (Karen Kolling)
Subject: Re: HELP!! : Unaligned access error on DEC Alpha, $OS == osf1
Date: Tue, 9 Nov 1993 20:26:14 GMT [thread overview]
Message-ID: <1993Nov9.202614.1396@adobe.com> (raw)
In-Reply-To: 1993Nov9.072931.639@acs.eku.edu
In article <1993Nov9.072931.639@acs.eku.edu> acssysdsc@acs.eku.edu writes:
>In article <CG6wLL.4MF@atria.com>, jtk@atria.com (John T. Kohl) writes:
>> In article <CG6J69.1rt@atria.com>, I wrote:
>>
>>> Pointers must be
>>> aligned on 8-byte boundaries to avoid unaligned access problems.
>>
>> Let me rephrase that to make sure it's not misleading. _Storage_ for
>> pointers must be aligned on 8-byte boundaries. To avoid unaligned
>> access problems, pointer _values_ need to be aligned to the natural
>> alignment of the item to which they point.
>> --
>
>So what does he have to do to fix it? Does C have an align statement or
>directive?
I don't think so. If he's storing just 64 bit items, and ignoring for
the moment that "+1", he could just defined mem_space as a pointer to
any 64 bit item instead of int. I don't know what the +1 is for --
maybe it's a count of used space or somesuch and can be set up
separately, or he could point mem_space at a struct of an int and a 64
bit item. Or maybe it itself should actually be 64 bits long and not
an int (if, for example, it's for a pointer to free space). Or maybe
he's storing items of varying sizes in mem_space and really needs to
manage the space...
--
Karen Kolling kolling@adobe.com or kolling@netcom.com
^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^
next prev parent reply other threads:[~1993-11-09 20:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-11-08 12:50 HELP!! : Unaligned access error on DEC Alpha, $OS == osf1 Joseph Jacob
1993-11-08 15:32 ` John T. Kohl
1993-11-08 20:22 ` John T. Kohl
1993-11-09 12:29 ` acssysdsc
1993-11-09 20:26 ` Karen Kolling [this message]
1993-11-09 20:45 ` Karen Kolling
1993-11-10 15:06 ` Ken Cowan
1993-11-09 4:26 ` Karen Kolling
1993-11-09 17:06 ` Bruce O'Neel
1993-11-09 23:06 ` HELP!! : Unaligned access error on DEC John Lovell
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox