Forum Discussion
Altera_Forum
Honored Contributor
12 years agoStack, heap overflow detection in NIOS2/Eclipse
Hello, all. I need a solid method to track down potential stack, heap corruption. Looking at this document: n2cpu_nii5v1.pdf There is a section called "Overlapping Regions" which stat...
Altera_Forum
Honored Contributor
12 years agoThe altera startup code allocates data for 'stdout' so that your code can call printf().
If you don't need it, it it worth trying to get rid of it from the image. The 'small' libc/bsp build might do that, I use my own initialisation code (sets %sp and %gp) and none of the altera library code at all.