[CMake] The reason of /STACK:10000000 linker flag on Visual Studio

Yuri Timenkov ytimenkov at parallels.com
Tue Jul 15 04:50:05 EDT 2008


Hi,
We encountered a problem with this option: Such big stack sizes negatively 
affect threads count.

Numbers: with 10Mb stacks it is possible to create ~195 threads on 32-bit 
system, with default 1Mb stacks it is possible to create ~2000 threads on the 
same system.

So why does CMake need such huge stacks? And are such stacks necessary for 
every program (even C++)?

Thanks.


More information about the CMake mailing list