Need help

I want to allocate a big matrix in my Fortran code running on Windows system.
The matrix is 7812500 by 400 with data type integer(4).

I am getting segmentation fault because the matrix is too large.

On linux machines, the issue was fixed by adding -mcmodem=medium and -Mlarge_arrays.

Are there options for windows systems to fix this large array issue?


Hi LeonardRenner,

While Windows doesn’t support the Medium Memory Model, large array support (-Mlarge_arrays) is supported. Give it a try and see if it helps this program.