If the stack size usage is *"Not computed" *there are 3 common reasons:
- Please, check whether the function or its callee contains a red check (definite run-time error). If yes, the error has to be fixed. If your program contains a red check, you do not see this metric. The reason is that code following a red check is not analyzed. If that code contains function calls, any metric value shown would be inaccurate.
- Even if there are any intentional infinite loops like while(1) { } or a red loop that was justified, these would prevent this metrics from being calculated as well.
- You also do not see this metric if your code has calls to recursive functions. Please, check whether the function or its callee contains a call to a recursive function. Please, also be aware that this is the case, if there is a potential recursion (if the recursion could be avoided with certain conditions)
In order to spot places where recursion is used, you might turn on the following MISRA checker "MISRA C:2012 Rule 17.2" and check the results for Coding Rule Violations.
Please refer the below link for more documentation:
Best Answer