Getting rid of Unaligned Accesses (UA)

U. George netbeans at gatworks.com
Thu May 22 22:30:17 UTC 2008


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.




More information about the axp-list mailing list