Problem:
The default stack allocation for Windows programs is 1MB. How can this be increased?
Resolution:
If you want to increase that for your executable program (if, say, it has a very large local-storage section) you can set the LINK environment variable before linking and the linker will set the appropriate property:
SET LINK="/stack:10000000"
If you need to increase stack allocation for a program that's already linked you can use the Windows editbin utility:
editbin /STACK:10000000 myprog.exe