Altera_Forum
Honored Contributor
19 years agoProblem about heap & stack memory
Hi, everyone
I downloaded the full_featured_1s10 project from the examples of altera development kits to my stratix board without much modification in SOPC builder. I have a project I am working on and I found out that if I allocate my program data memory somewhere else that is closer to the CPU rather than the far-far away SDRAM, the perforamcne of my program can be improved. Before I actually allocate my data memory, I was trying to use the on-chip memory and tightly-coupled memory for heap and stack memory just to test out. In the system library properties, I first tried to set the memory allocation for my heap and stack memory to on-chip 64K bytes memory. The project compiles but the program won't run properly and gmon.out wouldn't come out either. I found out from the software handbook that programmer has to ensure that their programs operates within the limits of available memory by themselves. But I don't know where and how to check if there is enough space for the heap & stack memory of my project. Anyone had this problem before?