- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My programming enviroment is 64Bits Win7 + Visual Studio 2012 + IVF2013 (platform x64).
First, i was failed to bulid "my.exe" because of "LINK : fatal error LNK1248: image size (8514E000) exceeds maximum allowable size (80000000)", then i succeed to build "my.exe" by using the allocatable dimension. But the "my.exe" can't be excuted because of "it is not a valid win32 application". But If i directly and largely decrease the size of array in my program, the new "my.exe" can be excuted well!
In fact, the arrays' size can't be decreased largely. How can i get the excutable "my.exe" ? Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you do a build there is is a buildlog.html file created, it would be helpfull posting that as it might shed more light on the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On further reflection your static code size is too big. Read topic http://software.intel.com/en-us/forums/topic/291915 for example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To quote from another topic (topic/291915):....
It means that the total size of code and static data in your application exceeds 2GB and won't run. Even on 64-bit Windows, there is a 2GB limit for static code and data.
You probably have very large arrays declared, perhaps in COMMON. If you need more than 2GB of data, you will need to use 64-bit Windows and ALLOCATABLE arrays, allocating them to the desired size in your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot! Here is the build log:
Build Log Build started: Project: GeneralSeepCEM, Configuration: Release|x64 Environment Space =::=::\ =C:=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE =E:=E:\IVF11\SEEPCEMf90\GeneralSeepCEM\GeneralSeepCEM ALLUSERSPROFILE=C:\ProgramData ANSYS145_DIR=d:\Program Files\ANSYS Inc\v145\ANSYS ANSYSLIC_DIR=D:\Program Files\ANSYS Inc\Shared Files\Licensing ANSYS_SYSDIR=winx64 ANSYS_SYSDIR32=win32 APPDATA=C:\Users\XGS\AppData\Roaming AWP_ROOT145=d:\Program Files\ANSYS Inc\v145 CADOE_DOCDIR145=d:\Program Files\ANSYS Inc\v145\CommonFiles\help\en-us\solviewer CADOE_LIBDIR145=d:\Program Files\ANSYS Inc\v145\CommonFiles\Language\en-us CM2012DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\ CommonProgramFiles=C:\Program Files (x86)\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=XGS-PC ComSpec=C:\Windows\system32\cmd.exe FOR__IS_DEBUGGER_PRESENT=1 FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\XGS ICEMCFD_ROOT145=d:\Program Files\ANSYS Inc\v145\icemcfd ICEMCFD_SYSDIR=win64_amd IFORT_COMPILER13=C:\Program Files (x86)\Intel\Composer XE 2013\ ILBDIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\ INCLUDE=C:\Program Files (x86)\Intel\Composer XE 2013\compiler\include;C:\Program Files (x86)\Intel\Composer XE 2013\compiler\include\Intel64;C:\Program Files (x86)\Intel\Composer XE 2013\mkl\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include;C:\Program Files (x86)\Windows Kits\8.0\include\um;C:\Program Files (x86)\Windows Kits\8.0\include\shared;C:\Program Files (x86)\Windows Kits\8.0\include INTEL_DEV_REDIST=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\ INTEL_LICENSE_FILE=C:\Program Files (x86)\Common Files\Intel\Licenses LIB=C:\Program Files (x86)\Intel\Composer XE 2013\compiler\lib\Intel64;C:\Program Files (x86)\Intel\Composer XE 2013\mkl\lib\Intel64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\amd64;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64 LM_LICENSE_FILE=27500@XGS-PC LOCALAPPDATA=C:\Users\XGS\AppData\Local LOGONSERVER=\\XGS-PC LSTC_LICENSE=ANSYS MOZ_PLUGIN_PATH=D:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\ MSBuildLoadMicrosoftTargetsReadOnly=true MSMPI_INC=C:\Program Files\Microsoft HPC Pack 2008 R2\Inc\ MSMPI_LIB32=C:\Program Files\Microsoft HPC Pack 2008 R2\Lib\i386\ MSMPI_LIB64=C:\Program Files\Microsoft HPC Pack 2008 R2\Lib\amd64\ NUMBER_OF_PROCESSORS=8 OS=Windows_NT Path=C:\Program Files (x86)\Intel\Composer XE 2013\bin\Intel64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\ide;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Windows Kits\8.0\bin\x86;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files\Microsoft HPC Pack 2008 R2\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;d:\Program Files\MATLAB\R2012b\runtime\win64;d:\Program Files\MATLAB\R2012b\bin;D:\SIMULIA\Abaqus\Commands;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PkgDefApplicationConfigFile=C:\Users\XGS\AppData\Local\Microsoft\VisualStudio\11.0\devenv.exe.config PROCESSOR_ARCHITECTURE=x86 PROCESSOR_ARCHITEW6432=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3a09 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files (x86) ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public P_SCHEMA=d:\Program Files\ANSYS Inc\v145\AISOL\CADIntegration\Parasolid\PSchema SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\XGS\AppData\Local\Temp TMP=C:\Users\XGS\AppData\Local\Temp USERDOMAIN=XGS-PC USERNAME=XGS USERPROFILE=C:\Users\XGS VisualStudioDir=C:\Users\XGS\Documents\Visual Studio 2012 VisualStudioEdition=Microsoft Visual Studio Ultimate 2012 VisualStudioVersion=11.0 VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ VS90COMNTOOLS=D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\ VSLANG=1033 windir=C:\Windows windows_tracing_flags=3 windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log __iflSearch=C:\Program Files (x86)\Intel\Composer XE 2013\bin\Intel64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\ide;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Windows Kits\8.0\bin\x86;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files\Microsoft HPC Pack 2008 R2\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;d:\Program Files\MATLAB\R2012b\runtime\win64;d:\Program Files\MATLAB\R2012b\bin;D:\SIMULIA\Abaqus\Commands;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ Output Deleting intermediate files and output files for project 'GeneralSeepCEM', configuration 'Release|x64'. Compiling with Intel(R) Visual Fortran Compiler XE 13.1.2.190 [Intel(R) 64]... ifort /nologo /O2 /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc110.pdb" /libs:static /threads /winapp /Qmkl:parallel /c /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin\amd64" "E:\IVF11\Module\MyGenericSubroutines.f90" ifort /nologo /O2 /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc110.pdb" /libs:static /threads /winapp /Qmkl:parallel /c /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin\amd64" "E:\IVF11\Module\COSEEP20130601.f90" ifort /nologo /O2 /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc110.pdb" /libs:static /threads /winapp /Qmkl:parallel /c /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin\amd64" "E:\IVF11\Module\SEEP20130602.f90" Linking... Link /OUT:"x64\Release\GeneralSeepCEM.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"E:\IVF11\SEEPCEMf90\GeneralSeepCEM\GeneralSeepCEM\x64\Release\GeneralSeepCEM.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /HEAP:999999999,999999999 /STACK:999999999,999999999 /LARGEADDRESSAWARE /IMPLIB:"E:\IVF11\SEEPCEMf90\GeneralSeepCEM\GeneralSeepCEM\x64\Release\GeneralSeepCEM.lib" "x64\Release\MyGenericSubroutines.obj" "x64\Release\COSEEP20130601.obj" "x64\Release\SEEP20130602.obj" Link: executing 'link' Embedding manifest... mt.exe /nologo /outputresource:"E:\IVF11\SEEPCEMf90\GeneralSeepCEM\GeneralSeepCEM\x64\Release\GeneralSeepCEM.exe;#1" /manifest "E:\IVF11\SEEPCEMf90\GeneralSeepCEM\GeneralSeepCEM\x64\Release\GeneralSeepCEM.exe.intermediate.manifest" GeneralSeepCEM - 0 error(s), 0 warning(s)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It means that the total size of code and static data in your application exceeds 2GB and won't run. Even on 64-bit Windows, there is a 2GB limit for static code and data.
-----Does "maximum allowable size (80000000)" mean 2GB?
You probably have very large arrays declared, perhaps in COMMON. If you need more than 2GB of data, you will need to use 64-bit Windows and ALLOCATABLE arrays, allocating them to the desired size in your code.
------As you said, I had very large arrays declared in Module and failed to build ".exe". By using ALLOCATABLE arrays, the ".exe" is built successfully. But it can't be excuted because it is "not a valid win32 application", my windows is 64-bit and the platform i choosed in (VS2012+IVF2013) is X64. This problem has troubled me for a long time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stack/Heap size problem I think. Read the article "Memory Limits for Applications on Windows*" Submitted by Steve Lionel on Mon, 05/16/2011 - 09:15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot!
Mr. Steve's article on "memory limits for applications on windows" is very helpful. But I still have a question about dynamic allocatable array to resolve the problem of memory limits. "Note that you cannot use data-initialization for ALLOCATABLE arrays - such initialization must be in executable code." Does the "initialization" here means "allocate the arrays"? I declared the dynamic allocatable arrays in a module (header file), and allocated them in the main program (executable code). It seems doesn't work (.exe is not a valid Win32 application).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What happens if you use default stack and heap size, or reduce?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, the allocatable arrays does works after i "transfer more static arrays into dynamic arrays". Maybe only a small part of arrays declared in my module used allocatable arrays and it decrease the static data size not enough. After i used more allocatable arrays, the .exe can be excuted now. But the stack and heap size seems has little effect. (default value is 0 and i set both 999999999) .
Thank you very much!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page