I remember once I had the same type of problem. In my case, problem started when I was using statements such as:
a(i1:i2, j1:j2) = b(i1:i2, j1:j2)
Eventhough the above statement is quite legitimate, I noticed that it was causing program to crash, ... when dealing with large arrays. After seeing this, I tend to break down the above statement into two do loops whenever I am dealing with large arrays.
Ali Asi
asi@enginia.com
Re: stack overflow
如需更全面地了解编译器优化,请参阅优化注意事项。



Re: stack overflow
A stack setting of 4GB? That is probably not doing much good. Try setting it to 100MB. If you get a stack overflow on use of an array, a temporary copy of the array is being created. The stack is just a reserved section of virtual memory, but the total is fixed by the linker.
Steve