Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

stack size

moghaddam
Beginner
637 Views
Dear All,

I recently switched from Compaq Visual Fortran to Intel version.

I HAD to use " /stack:0x1dc6500" as one of my "project options" under "Link" in "project Settings" window. I was wondering if you know of the equivalence of this option in Intel.

I noticed there is this option of /Fn where n refers to MB, but I guess I haven't used it in a correct way as it is not working!

Thanks in advance!
Sarvin
0 Kudos
1 Reply
Steven_L_Intel1
Employee
637 Views
This is handled identically to CVF, though that value for stack you have is really quite large.

If you want to set the stack size, use Project > Properties > Linker > System > Stack Reserve Size

Let me suggest as an alternative that you try this: Fortran > Optimization > Heap Arrays - set this to "0". What this will do is have the compiler use dynamic allocation for temporaries rather than the stack. It helps in many cases.
0 Kudos
Reply