title: Visual C++ /HEAP Linker-Option
body: <p>I currently have some trouble with the Heap in a program of mine. While I was googling my way through the internet to find solutions I came across a page from the MSDN that describes some linker options for heap allocation that I don't understand.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/f90ybzkh%28VS.80%29.aspx" rel="nofollow">The documentation says that you can set the Heapsize with /HEAP</a>.</p>
  
  <p>I always knew that the stack size was fixed and that makes sense to me. But I always thought that the Heap is variable in size. To add some more confusion I found that the default value is 1MB. I have written lots of programs that use more than 1 MB of memory.</p>
  
  <p>What exactly does the /HEAP Option do then?</p>
  
  <p>Thanks</p>