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

question about limits on array size under x64

webappl
Beginner
901 Views

Hi,

Does anyone have any idea on the limits on array size?

I wrote a fortran program having a large array, say arr(20000,600000). Compilation of the pgoram was failed under x64 platform with MS visual studio 2008 professional edition, showing error message 'Compilation aborted (code 3)'.

What does code 3 mean and what's the memory limit for a array on x64 platform?

Thanks

Alex

0 Kudos
3 Replies
TimP
Honored Contributor III
901 Views
For Windows x64, you should use ALLOCATABLE to make an object of 2GB or more.
0 Kudos
Steven_L_Intel1
Employee
901 Views

See our Knowledge Base article on Memory Limits for Windows Applications.

Code 3 is just the termination error - you should have seen a previous error message saying that the array was too large.

0 Kudos
webappl
Beginner
901 Views
Thanks. It works.
0 Kudos
Reply