Forum Discussion
Altera_Forum
Honored Contributor
10 years agohow much space should i give to the stack + heap in nios?
hi in nios software, after i build it, the message shows: Info: (vi23_swprj.elf) 23 KBytes program size (code + initialized data). Info: 6764 Bytes free for stack + heap. ...
Altera_Forum
Honored Contributor
10 years agoIf you are really concerned about stack, you should check the "enable_runtime_stack_checking" option at the nios2-bsp-editor (Main>>Advanced>>hal).
This however can increase code size but at least will guarantee stack corruption does not occur.