This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Check heap size / set heap for system call
- From: "Puetz, Oliver P11M22" <Puetz dot Oliver at siemens dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 2 Feb 2007 14:49:20 +0100
- Subject: Check heap size / set heap for system call
Hi,
I'm working on Linux with gcc 3.4.6.
Within program A I execute a binary B (sources available) via
system("blahblah"), but this binary B terminates with a malloc error.
So,
- is there a possibility to check the amount of free heap, so I can
report this value within B?
- a possibility to set the heap size for the binary to be executed
within A?
Thanks in advance
Oliver