PDA

View Full Version : What can I do to minimize the size of my Windows executable program?


R. T. (Fortran Man)
09-03-2003, 06:08 PM
What can I do to minimize the size of my Windows executable program?

Lahey Support
09-03-2003, 07:14 PM
The reason you get a large executable is that our linker does not do executable compression for Windows executables. The following are options available to work around this:

* Consider compiling for DOS (using -nwin -pack -bind) and running the resulting program in a DOS box. This will give you an extended-DOS rather than a Windows console-mode application. Our linker will compress extended-DOS applications.
* Make your large arrays allocatable (a Fortran 90 feature). In this way, your executable stays small, you allocate the memory at runtime as needed.
* There is a third party product called Shrinker available from Blink, Inc. (http://www.blinkinc.com/) that will compress your executable.