title: How to overcome Stack Size issue with Visual Studio (running C codes with big array)
body: <p>I am using Visual Studio 13 to compile c codes for the first time. The codes run perfectly O.K. with 2d arays of size 64*64 (there are a few arrays in my programme) but if I increase the array size to 128*128 it does not run (but compile correctly). Instead it gives a message ".exe has stopped working". My machine has 4GB ram and the same programme run with 128*128 array if I run the codes from linux.</p>
  
  <p>Let me provide some more details: I have run the same code from linux using Intel C Compiler (non-commercial version) in the same machine. But due to some problem I am now constrained to work from a Windows environment. I searched and have installed two c- compilers (1) Visual Studio 13 and (2) Borland C. Both work well with a small array. But the moment I increase array size Visual Studio give the message ".exe has stopped working". I compile the programme using 'cl' from "Developers Command Prompt VS 13". </p>
  
  <p>I feel the problem is with stack size. </p>
  
  <p>In the link <a href="http://www.cs.nyu.edu/exact/core/doc/stackOverflow.txt" rel="noreferrer">detailed explanation</a> (as provided below) I have seen a command "ulimit" used in linux environment to increase the stack size. I remember using it a few years ago. </p>
  
  <p>I feel we are close to the solution, but my problem with Windows (and VS 2013) persists as I failed to execute <code>dumpbin /headers executable_file</code> or <code>editbin /STACK:size</code>. Actually I feel I do not know how to execute them. I tried to execute them from "Developer Command Prompt VS 13" as well as using Run (windows start bottom->search (run)->Run (prop up)). I request you kindly to provide more details if possible.</p>
  
  <p>I searched and found this website and think here the solution can be found. </p>
  
  <p>Please help. I want to run using Visual Studio 13 from Windows.</p>