Storing of Arrays in memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Storing of Arrays in memory

跳至解决方案
828 次查看
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!

标签 (1)
0 项奖励
回复
1 解答
753 次查看
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 项奖励
回复
1 回复
754 次查看
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 项奖励
回复