Description
You can initialize the stack area of memory to be a known value, such as 0xFEEDFACE, with a for loop or the memset() command and then run your program. Once the program is done, you can use the Nios® II IDE Memory window to examine stack memory and determine at which address the last written piece of data (ie. values other than 0xFEEDFACE) is located in the stack. This technique will show you how much the stack grew during the last program execution.