1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Rep Power

    Memory allocation regarding stack and heap

    Programming language books usually explain that value types are created on the stack, and reference types are created on the heap, without really explaining what these two things are. I haven't read a clear explanation of this. I mean I understand what a stack is, but where and what are they (relative to the physical memory of a real computer)?

    To what extent are they controlled by the OS or language runtime?
    What is their scope?
    What determines the size of each of them?
    What makes one faster?
  2. #2
  3. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Rep Power
    Anatomy of a Program in Memory

    Comments on this post

    • Technovicez agrees : Thankz very useful
    I ♥ ManiacDan & requinix

    This is a sig, and not necessarily a comment on the OP:
    Please don't be a help vampire!

IMN logo majestic logo threadwatch logo seochat tools logo