What is the equivalent of -mcmodel for compiling fortran program on windows.
this page talks of /heap-arrays[:size] option for windows for Intel compiler
Is there such option available for pgfortran. Please let me know how to force stack variables to move on heap.
What is the equivalent of -mcmodel for compiling fortran program on windows.
There isn’t one since the medium memory model requires OS support and Windows does not support it. Though, this only effects static memory. For large (> 2GB) dynamically allocated arrays, you can add the flag “-Mlarge_arrays”.
this page talks of /heap-arrays[:size] option for windows for Intel compiler
Is there such option available for pgfortran. Please let me know how to force stack variables to move on heap.
“-Mnostack_arrays”, but this is our default behavior so the flag is not needed. To set the stack size, please use the link time flag “-stack=[:]”.