| View previous topic :: View next topic |
| Author |
Message |
Praveen Kulkarni
Joined: 10 Mar 2013 Posts: 1
|
Posted: Mon Mar 11, 2013 3:35 am Post subject: how to force variables to use heap memory in pgfortran |
|
|
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. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Mar 11, 2013 9:27 am Post subject: |
|
|
| Quote: | | 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".
| Quote: |
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=<reserve>[:<commit>]".
- Mat |
|
| Back to top |
|
 |
|