Storing of Arrays in memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Storing of Arrays in memory

Jump to solution
821 Views
b_tamkus
Contributor I

Hello,

can anyone tell me how arrays (maps) are stored in linear memory? In row-major order or in column-major order? I use the CodeWarrior Development Studio for DSC56800/E Version 8.3 and the MC56F8367VVFE and the Compiler should be Metrowerks M56800E C Compiler. I've problems with calibrating maps. In the A2L-File is column-major order stated. How does it depends on? The µC or compiler...

Thank you very much!

Labels (1)
0 Kudos
Reply
1 Solution
746 Views
TICS_Fiona
NXP Employee
NXP Employee

For the storing of array, the DSC compiler in CodeWarrior v8.3 saves it in row-major order. Please see the screenshot as below for array allocation in memory.

array.png

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
747 Views
TICS_Fiona
NXP Employee
NXP Employee

For the storing of array, the DSC compiler in CodeWarrior v8.3 saves it in row-major order. Please see the screenshot as below for array allocation in memory.

array.png

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply