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:


or for array operations, for example


When N is too large.

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



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.

Retired 12/31/2016

Leave a Comment

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