How to get stack usage analysis?

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

How to get stack usage analysis?

跳至解决方案
4,323 次查看
達裕百鳥
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,882 次查看
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,882 次查看
BlackNight
NXP Employee
NXP Employee
0 项奖励
回复
3,882 次查看
達裕百鳥
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,883 次查看
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,882 次查看
達裕百鳥
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,882 次查看
BlackNight
NXP Employee
NXP Employee

It does not have such an option.

0 项奖励
回复
3,882 次查看
達裕百鳥
Contributor I

Thank you Erich. Your explanation was easy to understand.

0 项奖励
回复