Monday, December 8, 2008

How One-dimensional Array is Stored in Memory

You might have noticed that in C, the rightmost subscript of a two-dimensional array varies faster than the leftmost (in fact, there are no multidimensional arrays in C, but array of arrays). This fact suggests that the array is stored in a row major addressing format. However, for a one-dimensional array the case is the simplest: The array occupies a contiguous block of memory. The array -

int a[10];

- is laid out in memory as a contiguous block, as shown below:

One dimensional array storage pattern


Elements of array are stored in the successive increasing locations of memory. For example, if the array starts at memory location 0×1000, then with our assumed size of an integer (4 bytes), the first element is stored at location 0×1000, the second element at location 0×1004, and so on.

Saturday, November 22, 2008

ARM Processor


This is one of the best books to get started with while Studying the ARM processor.

ARM System Devopers Guide - Andrew Sloss ...

Baby steps

This journal of mine will be a diary of all the phases i went through and will go through in my persuit to become an Embedded Engineer !!

I welcome you all to have an insight into this world of mine.

In this journal of mine i shall be sharing with you all  the relevant books, softwares, tricks, 
tips and most importantly the pains ...

My interest modtly lie in the areas of  communication & multimedia domain.

I shall be motly using C, Linux,VxWorks and the ARM Processor.

So lets begin the journey ...