-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 #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.


3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
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.

Retired 12/31/2016

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.

Leave a Comment

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