Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is from the advanced windows debugging book I take it, not sure what you mean as you get kind of vague towards the end, however what it basically means is as follows:</p> <p>When you allocate heap space the contents of the heap are not necessarily pre-determined, so you can use that allocated space as you see fit: for example, I allocate 1 megabyte of heap memory, and I then decide to populate that space with only 512k or data, that would mean I have committed half of my allocated heap, leaving a further 512k free. That memory will still show as being utilised to the OS because I have explicitly set the heap allocation to 1024k, however next time I use that same space I could use more or less than the 512k I utilised last time, up to the amount I have allocated for use. The amount you use at a given point is the commit, the amount you have set aside is the allocation. </p> <p>This is all much much simplified, and I would recommend reading such sources as:</p> <ul> <li><a href="https://stackoverflow.com/questions/5836309/stack-memory-vs-heap-memory">stack-memory-vs-heap-memory</a> from here</li> <li><a href="http://www.learncpp.com/cpp-tutorial/79-the-stack-and-the-heap/" rel="nofollow noreferrer">the-stack-and-the-heap</a> from learn CPP</li> <li><a href="http://gribblelab.org/CBootcamp/7_Memory_Stack_vs_Heap.html" rel="nofollow noreferrer">Memory_Stack_vs_Heap</a> from CBootCamp</li> </ul> <p>As good sources to get you started on memory and its usage in C++.</p> <p>If there is anything specific or more detail you can think of (your question is a bit unclear) then let me know and I will get back to you as soon as possible.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload