Nathan Hjelm <hje...@lanl.gov> writes:

> I would like to add that you may want to play with the value and see
> what works for your applications. Most applications should be using
> malloc or similar functions to allocate large memory regions in the heap
> and not on the stack.

It's long been a Fortran optimization to stack-allocate arrays (from the
days of all-the-world's-a-VAX when loads of code broke that assumed SAVE
attributes).  It's an FAQ here for the intel compiler and well-optimized
gfortran, and there are other good reasons for large stacks compared
with the 10MB-ish default.

Reply via email to