I can assume that 10M stack is reasonable for C code, where it&#39;s usual to allocate temporary buffers on stack (in C++ it&#39;s easier to use heap, e.g. using std::vector).<br><br>Bad thing is - impact of this flag is detected only at run time. If with /Zm your code just won&#39;t compile, with /STACK everything compiles and links perfectly, works fine in simple cases, but you&#39;ll receive OOM under load (in C, when stack will be over).<br>
That&#39;s why I didn&#39;t insist on changing behavior when found this bug 3 years ago.<br><br><div class="gmail_quote">On Tue, Jan 31, 2012 at 8:02 PM, Glenn Coombs <span dir="ltr">&lt;<a href="mailto:glenn.coombs@gmail.com">glenn.coombs@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On a related note:<br><br><div style="margin-left:40px"><a href="http://www.gccxml.org/Bug/view.php?id=12437" target="_blank">http://www.gccxml.org/Bug/view.php?id=12437</a><br>
</div><br>can you check if ITK and VTK build fine without the large stack size argument (/STACK:10000000) as well ?<span class="HOEnZb"><font color="#888888"><br>
<br>--<br>Glenn</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On 30 January 2012 15:58, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ITK and VTK both build fine if I remove the /Zm1000 flag.<br>
<div><div><br>
On Mon, Jan 30, 2012 at 10:44 AM, Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>&gt; wrote:<br>
&gt; On 1/28/2012 10:51 AM, David Cole wrote:<br>
&gt;&gt;<br>
&gt;&gt; Seems reasonable. Is anybody worried that changing the default values<br>
&gt;&gt; of these flags would have a negative impact on any projects out there?<br>
&gt;&gt; (i.e. is it likely that anybody relies on these flags being present<br>
&gt;&gt; and that would somehow break their build without them...? I don&#39;t<br>
&gt;&gt; think it&#39;s likely, but I&#39;m willing to discuss before making a change<br>
&gt;&gt; in CMake)<br>
&gt;<br>
&gt;<br>
&gt; They were originally put in for VTK/ITK.  They would be the projects to try.<br>
&gt;<br>
&gt; -Bill<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
<br>
</div></div><div>--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div><div><div>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>
</div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>