Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi again,
found what I meant, I guess: http://www.altera.com/literature/lit-nio2.jsp (http://www.altera.com/literature/lit-nio2.jsp) -> Nios II Software Developer's Handbook In chapter 4 'Developing Programs using the HAL' under 'Memory Usage' -> 'Placement of Heap and Stack': 'By default, the heap and stack are placed in the same memory partition as the .rwdata section. the stack grows downwards (toward loweraddresses) from the end of the section. The heap grows upwards from the last used memory within the .rwdata section. You can control the placement of the heap and stack as a system library property in the Nios II IDE.' (right now page 3-38) So if I got it right, heap and stack are not placed at the end of memory, just stack grows downwards from end of .rwdata section (check also Figure 4-3 'Sample HAL Link Map' on page 4-34). Then maybe I've been wrong, sorry. Still I didn't get it in total.