How to get stack usage analysis?

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

How to get stack usage analysis?

ソリューションへジャンプ
4,136件の閲覧回数
達裕百鳥
Contributor I

How to get stack usage analysis?

I use the following:

CW for MCU V10.7

Freescale Assembler for Embedded ARM family.
Version 2.0 build 59 (build 59)


Freescale C/C++ for Embedded ARM.
Version 5.1 build 59 (build 59)


Freescale Linker for Embedded ARM.
Version 3.0 build 59 (build 59)

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
3,695件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Your screenshots indicate you are using the depreciated/legacy Metrowerks ARM compiler. That option only exists for the GNU gcc compiler:

pastedImage_1.png

I hope this helps,

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
3,695件の閲覧回数
BlackNight
NXP Employee
NXP Employee
0 件の賞賛
返信
3,695件の閲覧回数
達裕百鳥
Contributor I

Thank you very much for your reply.

I tried to build a program with "-fstack-usage" compiler option. 

However, an "Unknown option" error has occurred.

Did I make the wrong setting?

WS000002.JPG

WS000001.JPG

Best regards, 

Tatsuhiro

0 件の賞賛
返信
3,696件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Your screenshots indicate you are using the depreciated/legacy Metrowerks ARM compiler. That option only exists for the GNU gcc compiler:

pastedImage_1.png

I hope this helps,

Erich

0 件の賞賛
返信
3,695件の閲覧回数
達裕百鳥
Contributor I

I appreciate your response.

Do you know if this ARM compiler does not have a stack usage analysis option?

Best regards, 

Tatsuhiro

0 件の賞賛
返信
3,695件の閲覧回数
BlackNight
NXP Employee
NXP Employee

It does not have such an option.

0 件の賞賛
返信
3,695件の閲覧回数
達裕百鳥
Contributor I

Thank you Erich. Your explanation was easy to understand.

0 件の賞賛
返信