Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

size of executable

barakobama
Beginner
949 Views

The size of my executable increased from 19M(VS6) to 28M(VS2005).

Basically nothing has been changed in terms of libraries and the settings

between those versions. Is it typical? If not, what factors can contribute that big jump in size?

-BO

0 Kudos
4 Replies
Steven_L_Intel1
Employee
949 Views
You also changed from CVF to IVF? I can't think offhand of what would cause a change of that magnitude - might be related to DATA-initialized arrays, I suppose, but I would not expect a big difference.

Can you come up with a small source that shows a difference?
0 Kudos
Jugoslav_Dujic
Valued Contributor II
949 Views
Debug or release? My experience shows that IVF produces fairly large Debug binaries compared with CVF, but Release binaries are about the same or even smaller.
0 Kudos
barakobama
Beginner
949 Views

Steve,

I made a small sample to compare the sizes of two binary files for release version.
One is made using VC6 and the other one is converted from it using VS2005 with IVF9.1.
The size has been increased from 208K to 352K.

The name of zipped file is BOs-SizeTest.zip.
The file will have two directories: VS6 and converted VS6II by VS2005.
Actually, the size of executables for the sample have been reduced by the order of 2 from my real application.
If you feel the size of sample is too small for fair comparison, I will make another sample with a bigger size.

-BO

0 Kudos
Steven_L_Intel1
Employee
949 Views
What you're seeing here is just a bigger run-time library due to a much larger language. That would not explain the multi-megabyte difference you described earlier. If one looks at just the object file for the Fortran code, for CVF it is 1181 bytes and with IVF it's 1311 bytes, hardly an earth-shattering difference, and that's because IVF adds some additional default library directives.

So, yes, I'd want to see a project that shows a bigger difference. Comparing the size of the .obj files is more interesting.
0 Kudos
Reply