• 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: multidimensional arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multidimensional arrays


  • Subject: Re: multidimensional arrays
  • From: Andy Armstrong <email@hidden>
  • Date: Wed, 16 Mar 2005 09:00:23 +0000

On 16 Mar 2005, at 00:33, Pandaa wrote:
I just have to point out that while this used to be true for older compilers, it is not generally true today. Most compilers today can optimize sequential array access better than iterated pointer arithmetic and dereferencing. Internally, they try to rewrite the pointer arithmetic/dereferencing to array accesses. Many optimizations requires good data dependency analysis, which the compiler may have difficulties doing on pointer arithmetic expressions.

Are you sure about this?

"Internally, they try to rewrite the pointer arithmetic/dereferencing to array accesses."

And what is an 'array access' at assembler level? Have you actually looked at the code compilers generate for different C idioms or are you just speculating?

--
Andy Armstrong, hexten.net

_______________________________________________
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:
    • Moderator: Re: multidimensional arrays
      • From: mmalcolm crawford <email@hidden>
References: 
 >RE: multidimensional arrays (From: Jeff Laing <email@hidden>)
 >Re: multidimensional arrays (From: Pandaa <email@hidden>)

  • Prev by Date: Re: Composite NSCell subclass event handling
  • Next by Date: Re: Re: Drag&Drop woes...
  • Previous by thread: Re: multidimensional arrays
  • Next by thread: Moderator: Re: multidimensional arrays
  • Index(es):
    • Date
    • Thread