Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTASK_STACKSIZE setting in Simple Socket Server
I just got the Nios II Simple Socket Server example app working on a custom board with a Cyclone III and 512KB SRAM (no other RAM). the original elf file was almost 900kbytes, with a significant por...
Altera_Forum
Honored Contributor
14 years agoOne problem is that the maximum stack use is likely to be in an obscure error path...
If your code has no recursion, no calls to alloca() and no (or only identifyable) function pointers it is possible to determine the maximum stack use by analysing the object code. Parsing the output of gcc -S --fverbose-asm is possible the easiest source data.