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

CVF v5.x Linker Warning: Exec Size Exceeds Max Allowed

ahbstxz
Beginner
1,378 Views
Hello. I havea quick question. I have plodded along on this and, with a lot of work,have achieved a successful compile and link of a Fortran 70 app (in CVF IDE): only 1 Compile Warning and 1 Link Warning (see below). It is CVF v5.x or 6.x-have forgotten on Windows 2003 Server (I know it is not Win95 or XP). I know thistool is dated but details onerr maybe well known. I want to rule out this warning as being source of issue I am having.
The Link warning indicated image (executable) size (356900864)exceeded max allowable (268435456);however, the generated executable is only 268K. So, why the warning? Why isn't the image closer to 268435456 bytes in size??
From the context of your experience, is this a concern or just a decoy; i.e., the executable is as programmed and should work as programmed? The executable runs without err butis not producingexpected results so I thought maybe the size warning should be taken seriously-that it may be producing strange behaviorand I should strive to decrease exec image size by paring down the linked files (.lib, .mod, .def, .inc) by only using what absolutely necessary.
Debug/rmwg_dump.exe : warning LNK4084: total image size 356900864 exceeds max (268435456); image may not run rmwg_dump.exe - 0 error(s), 1 warning(s)
Thank You
0 Kudos
5 Replies
anthonyrichards
New Contributor III
1,378 Views
Have you redimensioned any arrays in your code - on purpose or by accident - recently? It looks like you are askingfor huge amounts of storage.
0 Kudos
TimP
Honored Contributor III
1,378 Views
The warning has been discussed several times on the forum pages. Presumably, this is a reason for leaving the CVF forum archives visible, and for the provision of a search function. It warns you that it may not run on Windows 95.
0 Kudos
ahbstxz
Beginner
1,378 Views

I am on Windows Server 2003, Standard Edition/S.P. 1. Not Win95.

The Fortran Prog I inherited and it had been created/debugged, etc.; i.e., itshould work. But I had to get it to compile/link in CVF on my machine. I only changed 1 thing in the code-did not redimen any arrays. It does call a lot of third-party libs, etc. The agony was getting all these files together and configuring them properly in the IDE and in proper folders.

The exec image generatedis only 268K--is that correct or does the warning suggest otherwise? This is confusing since I get unexpected, incorrect results so I do not know if the image should be ~350M and, if system could accomodate it, would yield correct results. But it does run w/o err.

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,378 Views

What happens when your compiler options are set for minimum size? (and favor size over speed and no loop unrolling, etc...)

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
1,378 Views
The message is trying to tell you that the EXE will not run on some old versions of Windows. It doesn't care what you are building on. If you won't run on Windows 95 or Windows NT4 prior to SP3, then you can ignore this message. Later versions of the MS linker do not give this warning.

The size of the .EXE file does not tell you how much static code and data is in the application.
0 Kudos
Reply