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

-heap-array in VC++ IDE?

jd_weeks
Beginner
653 Views
I was very happy to see the -heap-array option to tell the compiler to allocate temporary arrays on the heap. That will save me a lot of trouble.

But I couldn't find this as an option within the Fortran property pages in VC++. Can it be accessed from the IDE, or do I have to use the command line to use this option?
0 Kudos
4 Replies
Steven_L_Intel1
Employee
653 Views
It cannot be accessed from an IDE property page at this time. Also, the -heap_arrays switch itself doesn't work, which was unintentional.

In the IDE, you can go to the "Command Line" property page and type in the option yourself. Until the next update, use this as an alternative:

-Qoption,f,"-heap_arrays 0"
0 Kudos
jd_weeks
Beginner
653 Views
Thanks, Steve.

Right after I posted that message I discovered the command line option, and found that the option doesn't work.

Using your solution, it compiled without complaint. Now how do I verify that it actually did something? :)
0 Kudos
Steven_L_Intel1
Employee
653 Views

If it works, your program no longer gets a stack overflow error. If it wasn't getting such an error before, then you don't need this option.

0 Kudos
jd_weeks
Beginner
653 Views
Right. I guess I was hoping I didn't have to dig up my large-problem test... :)
0 Kudos
Reply