View Single Post

  #2 (permalink)  
Old 06-02-2005, 04:12 PM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Memory
-----------------
c code (bin) --> 1
-----------------
static data --> 2
-----------------


stack --> 3


-----------------
Heap --> 4
-----------------

1) Machine instruction aka your compiled C code
2) Gloable variable, static variables (variables which exists throught program)
3) Dynamically allocated storage (linked list created using malloc())
4) Info about function call in your code

Hope this clears the picture
Reply With Quote