Intel Fortran compiler 2013 (Visual Studio2010): best way to increase stack for long scalar strings
问题 I was having a stack overflow error in a fortran code compiled with fortran compiler 2013 and VS2010 under windows 7. I first try to set HeapArrays=0 in Project Properties ->Fortran -> Optimization -> Heap (Allocates temporary arrays of size n in the heap rather than in the stack). In that way all the arrays should move to the heap. However, nothing changed and the stack overflow error was still there. Then I added the flag /stack:2000000 in the Link Options and now everything runs smoothly.