Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to get current heap pointer?
My project need to read current heap pointer, but I don't know how to implement it. In NiosII IDE, Variables Window, you can add a global variables for watching, and I find heap_end which is...
Altera_Forum
Honored Contributor
20 years agoHi David_Cai,
maybe heap_end is declared in the linker script? If you want to use symbols declared by the assembler or linker you can add an 'extern' declaration to your c code: e.g.extern int heap_end; Hope that helps, Wolfgang