Limits for Automatic arrays and array sections?

Limits for Automatic arrays and array sections?

I tried searching the help and this forum and could not find anything.

I find that I get crashes (e.g stack overflow) if I use too large a range for automatic arrays and array operations. For example, the automatic array Y:

SUBROUTINE SUB (X,N)
DIMENSION X(N), Y(N)

or for array operations, for example

X(1:N)=Y(1:N)

When N is too large.

How big is too large and do I have any control over what is too large?

Thanks,

Charles

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The Microsoft linker sets the stack default size at 1MB. You can change this using the Linker > System > Stack Reserve Size property, or, and this is my recommendation, set the property Fortran > Optimization > Heap Arrays to 0. This will cause these arrays to be allocated on the heap, which has no fixed limit.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today