• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Strangeness when moving data through an array.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strangeness when moving data through an array.
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Invoking methods from different threads
  • Next by Date: Re: NSTable: Notification on selection of already selected row.
  • Previous by thread: Re: Strangeness when moving data through an array.
  • Next by thread: Re: Strangeness when moving data through an array.
  • Index(es):
    • Date
    • Thread