Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: netbeans at gatworks.com (U. George)
Subject: Getting rid of Unaligned Accesses (UA)
Date: Thu, 22 May 2008 18:30:17 -0400	[thread overview]
Message-ID: <4835F3F9.6000707@gatworks.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0805222104160.13339@cliff.in.clinika.pl>

I suppose I should ask, why do u care?

early cpu's could only store/fetch certain types ( int's/long's ) on 
aligned boundaries. fetching a byte, storing a byte, required an 
int/long fetch, and shifting.
Overcoming such a problem, would mean expanding the byte storage into 4 
byte, aligned on int boundaries. For structs, there is/was a pragma to 
force byte alignment, short alignment on int boundaries. You pay for 
this by wasted memory space.

I think the 21264 cpu's can fetch/store bytes anywhere without faulting 
to external fixup routines.



  reply	other threads:[~2008-05-22 22:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 18:53 Getting rid of Unaligned Accesses (UA) Jay.Estabrook
2008-05-22 19:10 ` macro
2008-05-22 19:13   ` Jay.Estabrook
2008-05-22 20:24     ` macro
2008-05-22 22:30       ` netbeans [this message]
2008-05-23 13:54         ` Jay.Estabrook
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