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

module with big static arrays

dmitri_leonov
Beginner
538 Views
Dear developers,

I'm using ifort (fce) version 10.0.017 for Mac OS X on a Mac Pro. The code that I'm trying to compile includes a module with some static arrays. When the size of the arrays is increased beyond certain point I start getting this message at linking stage:

ld64-59.2 failed: rel32 out of range in _MAIN__ from elcirc5_01_02r.o

When I recompile the code with the -automatic option I get the 'Illegal instruction' error at runtime. Any Ideas would be appreciated.

Regards,
Dmitri Leonov.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
538 Views
It sounds as if your arrays are too big for the available address space. Even with 64-bit MacOS, static data is limited to 2GB and stack is even less. How large are these arrays in total?

If you used 64-bit Mac OS (on a Mac with an Intel Core 2 family processor), you could make the arrays ALLOCATABLE and then allocate them as large as you like.
0 Kudos
Reply