[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Getting rid of Unaligned Accesses (UA)
- From: "U. George" <netbeans gatworks com>
- To: Linux on Alpha processors <axp-list redhat com>
- Subject: Re: Getting rid of Unaligned Accesses (UA)
- Date: Thu, 22 May 2008 18:30:17 -0400
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.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]