Re: multidimensional arrays
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