RE: Strangeness when moving data through an array.
RE: Strangeness when moving data through an array.
- Subject: RE: Strangeness when moving data through an array.
- From: Jeff Laing <email@hidden>
- Date: Thu, 2 Dec 2004 08:25:14 +1100
> > If pkt[MSEQ] is not on a 16-bit boundary, you'll get an exception.
>
> I'd figure it would take a few extra cycles to access across word
> boundaries, but an exception? That's harsh.
I couldn't find a PPC specific reference, but according to:
http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixassem/alangref/fi
xed_point.htm#HDRC274171423JEFF
(and I have to say I love the synchronicity of the anchor name :-)
--------------------------------------------------------------------
Fixed-Point Load and Store with Update Instructions
(blah blah blah)
In user programs, load and store with update instructions which access an
unaligned data location will be performed by either the hardware or the
alignment interrupt handler of the underlying operating system. An alignment
interrupt will result in the EA not being in the base GPR.
--------------------------------------------------------------------
There tis. "Alignment interrupt handler". Keep your data accesses aligned
the way the CPU likes or suffer the performance penalty.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden