How to get stack usage analysis?

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

How to get stack usage analysis?

Jump to solution
4,110 Views
達裕百鳥
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)

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
3,669 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
3,669 Views
達裕百鳥
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 Kudos
Reply
3,670 Views
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 Kudos
Reply
3,669 Views
達裕百鳥
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 Kudos
Reply
3,669 Views
BlackNight
NXP Employee
NXP Employee

It does not have such an option.

0 Kudos
Reply
3,669 Views
達裕百鳥
Contributor I

Thank you Erich. Your explanation was easy to understand.

0 Kudos
Reply