-mcmodel option on IA32

-mcmodel option on IA32

I have searched along the forum with no luck.

I need to compile a fortran code with large arrays on a SuSE 32bit.

trealfa:/opt/intel/ # uname -a
Linux trealfa 2.6.27.23-0.1-pae #1 SMP 2009-05-26 17:02:05 -0400 i686 i686 i386 GNU/Linux
trealfa:/opt/intel/ # ifort -V
Intel Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20090511 Package ID: l_cprof_p_11.1.038

I get a warning about missing mcmodel option on IA32,

warning #10148: option '-mcmodel' not supported

and then a segfault running the executable. Deleting COMMONS didn't help.

My question is: is there any option on a 32bit that allow use of large arrays, in place of -mcmodel?

Thank for your time.

Roberto

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture
Best Reply

-mcmodel is an x64 option only. Your static code and data on 32-bit is limited to 2GB and it sounds as if you're over that.

Steve

If you're not exceeding the 2GB virtual space limitation, -heap-arrays or increasing your shell stack limit may help. Otherwise, you need the x86-64 OS. pae is of limited usefulness when you don't program specifically to it; even then, it's likely inferior to what you get for free with the 64-bit OS.

Login to leave a comment.