Stack and Heap

"Nate" <[email protected]> Wed, 15 Jan 2003 12:00:32 -0800
Newsgroups org.kernel.vger.linux-gcc
Message-ID <[email protected]>
Are there any commands / functions to call to find out memory info?

For example, if I am writing a program that is using a ton of memory.
Everything is working and then I add more code needing more memory but it
crashes and I think I may be trying to use too much...  Can I call some
commands to see how much memory is left?  And/Or how much I am using?  For
Stack and Heap?


Thank You,

Nate