Storing of Arrays in memory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Storing of Arrays in memory

ソリューションへジャンプ
827件の閲覧回数
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 解決策
752件の閲覧回数
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 返信
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 件の賞賛
返信