Bonkers

Dave Hodgkinson davehodg at gmail.com
Fri May 11 14:47:40 BST 2007


On 11 May 2007, at 14:34, Andy Armstrong wrote:

>
> If you declare
>
>   int a[10][10];
>
> you get 100 contiguous int slots and the compiler generates code to  
> do the address calculations. The rightmost subscript changes fastest.

Note that to keep the CPU data pipeline fed, iterate down the  
contiguous memory  in the
inner loop.

-- 
Dave Hodgkinson - Music photography
http://www.davehodgkinson.com/




More information about the london.pm mailing list