Forum Discussion
Altera_Forum
Honored Contributor
13 years agoMalloc till it fails, crashes, bug in Malloc?
I'm trying to write some code that will determin how much "free" memory the system still has. I created some somewhat speedy code, but really the simple code could just run a loop like this: ...
Altera_Forum
Honored Contributor
12 years agoI have defined linker script for my code.
When I call malloc() NIOS returns me a address from some other region instead of .heap region. Please let me know how can I allocate memory to pointers from the heap as defined in the GUI of BSP Editor. As in theory malloc() gives memory from heap.