From mboxrd@z Thu Jan 1 00:00:00 1970 From: rameshpa@gmail.com (Ramesh.P) Date: Mon, 27 Jun 2011 10:06:09 -0700 Subject: process stack In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sun, Jun 26, 2011 at 9:00 PM, Asutosh Das wrote: > > On 27 June 2011 09:04, Venkateswarlu P wrote: >> >> >> Each process is having a stack . >> >> In C ,for local variables allocation? this stack? is used (for some extra >> usage also). >> >> what about static and global data allocation ? > > > it goes into BSS (no explicit initialization) I think static/global variables (in BSS) without explicit initializer are initialized to zero (null for pointer types). >> >> where this data? will be allocated ?. >> >> >> what? about dynamic memory allocation ? > > goes into heap >> >> _______________________________________________ >> Kernelnewbies mailing list >> Kernelnewbies at kernelnewbies.org >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > > > > -- > Thank you, > Warm Regards, > Asutosh Das > # (91) 9049 000 969 > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > >