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.
29284 Discussions

Bad Executable Format(Win32 error 193)

sima_jonoud
Beginner
1,532 Views
Hi,
I am stuck with this error when I increase my array size above a certain value (which is embarrasingly not very big!). I guess this is a more general problem than just limited to FORTRAN.
I can compile and debug, but as soon as I start running, this error comes up.
'Cannot execute: Bad Executable Format(Win32 error 193)'. Is any thing wrong with my project setting?
Will appreciate any help,
Thanks,
Sima
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,532 Views
Do you get any warnings while linking the application? What Windows version are you running? You say that the array size is "not very big", but I've often seen people underestimate the total size of an array. What's the array declaration?
0 Kudos
sima_jonoud
Beginner
1,532 Views
I get a warning message when I try to link:
'warning LNK4084: total image size -207052800 exceeds max (268435456); image may not run'
The largest array I have is some thing like a(13000,50,2,80); plus 4 to 5 arrays like b(13000) and some like c(50,2,80). Do you think it's because of array size?
0 Kudos
Steven_L_Intel1
Employee
1,532 Views
Absolutely, yes. That linker warning is telling you that the static code and data size of your application is greater than 2GB (that's why the number is negative.) 2GB is the absolute maximum limit for static code and data size on Windows (even Windows x64).

You'll have to reduce the size of your arrays. If you need more array space, you'll have to move to Windows x64 using an Intel EM64T processor and use ALLOCATABLE arrays (to get around the static size limit.)
0 Kudos
sima_jonoud
Beginner
1,532 Views
Thanks a lot Steve, I'll try.
Sima
0 Kudos
Reply