Thread (3 messages) 3 messages, 3 authors, 2011-06-27

process stack

From: Ramesh.P <hidden>
Date: 2011-06-27 17:06:09

On Sun, Jun 26, 2011 at 9:00 PM, Asutosh Das [off-list ref] wrote:
On 27 June 2011 09:04, Venkateswarlu P [off-list ref] wrote:
quoted

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).
quoted
where this data? will be allocated ?.


what? about dynamic memory allocation ?
goes into heap
quoted
_______________________________________________
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help