This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
2 questions
- From: "Michael Gong" <mwgong at cs dot utoronto dot ca>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 12 Feb 2007 12:25:13 -0500
- Subject: 2 questions
Hi, all,
They are not related with gcc. But since gcc's developers are all
experienced developers and willing to help, I would like to post my
questions here.
1. when is the local static variable of a function get allocated ? Is it
during the system startup or when the function is called ?
2. where does the memory used by malloc() come from ? I know they are
from heap. So what's the memory of heap come from ?
Thanks.
Mike