title: Is there a way to increase the default stack size beyond 16777216 bytes?
body: <p>The question says it all.  Attempting to increase the stack size in the linker options generates the error :</p>
  
  <blockquote>
    <p>Maximum Stack Size must be an integer between 65536 and 16777216.</p>
  </blockquote>
  
  <p>Is this 16MB limit a fundamental limitation of the Delphi compiler or is this an arbitrary limit imposed by the IDE?  Is there another way to increase this value?</p>
  
  <p>Note (in anticipation of the comments...) :</p>
  
  <ul>
  <li>The need for a larger stack is due to enormous static array types used as local variables</li>
  <li>I understand that the need to do this is symptomatic of terrible design</li>
  <li>This is a large legacy application whose design and maintenance I am not responsible for.</li>
  <li>Refactoring to dynamic arrays works, but incurs a 50% performance penalty.</li>
  <li>Other refactorings are possible - probably weeks of work.  This will likely end up as a side-project.</li>
  <li>In the meantime, functionality is needed now and a larger stack would be an easy fix.</li>
  <li>Yes, I really, really know this a bad, bad thing to do.  </li>
  </ul>