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
13 years agoIf you want to know how much memory malloc can give you, you are probably better off looking at how malloc is implemented and then scanning the internal structure.
You might find that malloc eventually hits the stack.