If your aim is generate per-function stack usage for all functions in the TF-A bootloader images then that should be sufficient, yes. To my knowledge, however, the `-fdump-ipa-cgraph` is a GCC-specific developer option, and is not supported by armclang.

 

Chris

 

From: Bhuvaneswari K via TF-A <tf-a@lists.trustedfirmware.org>
Date: Wednesday, 8 November 2023 at 05:05
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] Re: Stack usage

Hello Chris,
Good morning,

In our makefile we have added like this
TF_CFLAGS               +=      $(CPPFLAGS) $(TF_CFLAGS_$(ARCH))                \
                                -ffunction-sections -fdata-sections             \
                                -ffreestanding -fno-builtin -fno-common         \
                                -O0 -std=gnu99 -fstack-usage -fdump-ipa-cgraph
Here anything do I need to change?
--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org