1. When using the cg_xml stack analysis tool, is it possible to see the worst case stack usage (wcs) of the assembly functions in the call graph ? When I run the call graph I only see wcs = ??? for the assembly functions.
2. Just for informational purposes, how does the cg_xml stack analysis tool calculate or determine worst case stack usage (wcs) when a variable is declared and used only inside a loop ?
Just as a test, when I declare a variable in a for loop and use that variable only in the for loop, then run the call graph for this test build, there doesn't seem to be any difference in the wcs for that particular function. Does this variable declaration have any impact the wcs for the function ? Additionally, optimizations are set to off in the project.
For example, there was no difference in the wcs for the function that the following code was placed in:
for (i = 0; i < 3; i++)
{
int test_count = 2;
test_count = test_count + 3;
...
}
Thanks,
Eric