-fstack-usage support
Posted: Thu Jan 31, 2019 3:09 pm
I'm using ESP-IDF v3.1.2 trying to use the -fstack-usage compiler flag. I'm basically trying to achieve what this page explains https://mcuoneclipse.com/2015/08/21/gnu ... -analysis/. I want this compiler flag to optimize the stack usage of my tasks because in large and complex codebases the usual uxTaskGetStackHighWaterMark() method to optimize the stack usage is time-consuming and error-prone.
I have added the -fstack-usage to my components CFLAGS but when compiling the .su files are not being generated. Does the XTensa GCC support the -fstack-usage? I cannot find any information about this.
I have added the -fstack-usage to my components CFLAGS but when compiling the .su files are not being generated. Does the XTensa GCC support the -fstack-usage? I cannot find any information about this.