Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

question about limits on array size under x64

webappl
Beginner
564 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
564 Views
For Windows x64, you should use ALLOCATABLE to make an object of 2GB or more.
0 Kudos
Steven_L_Intel1
Employee
564 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
564 Views
Thanks. It works.
0 Kudos
Reply