Hi kbhuvanacbe,

 

armclang provides the `-fstack-usage` flag (e.g. `make CC=armclang CFLAGS=-fstack-usage`) which can report the stack usage for individual functions, but I’m afraid that call graph analysis is not currently possible as TF-A does not support linking with armlink outside of some specific niche situations.

 

Regards,

Chris

 

From: kbhuvanacbe--- via TF-A <tf-a@lists.trustedfirmware.org>
Date: Tuesday, 7 November 2023 at 09:40
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] Stack usage

We have executed below command on terminal to get stack size using ARMCLANG compiler. but we are getting "undefined symbol".

armclang --target=arm-arm-none-eabi -march=armv8-a -c -g file.c -o file.o
armlink file.o --info=stack
armlink file.o --callgraph -o FileImage.axf

Could anyone answer me that how to get stack size using ARMCLANG compiler for TFA code.
--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org