Editbin
From MohidWiki
Editbin is a little utility provided with Visual Studio 2008 (paid) or Visual C++ 2010 Express (free) that allows to set some link-time parameters such as HEAP and STACKSIZE.
> editbin /STACKSIZE:64000000 MohidWater_x64_double_openmp.exe
This will set the Stack reserve size of MohidWater_x64_double_openmp.exe to roughly 64M.
> editbin /HEAP:128000 MohidWater_x64_double_openmp.exe
This will set the heap reserve size of MohidWater_x64_double_openmp.exe to roughly 128K.