This code for a console app, produced a 1.1MB exe file under the Win32 Release target. How can I reduce its size? The whole purpose of this program is to calculate the md5 sum of the file given as its first parameter.


This code for a console app, produced a 1.1MB exe file under the Win32 Release target. How can I reduce its size? The whole purpose of this program is to calculate the md5 sum of the file given as its first parameter.

Comments

  1. David Heffernan Using the MD5 implementation of wdslimporter and stripping it down to what needed I cen get an exe from Delphi 5 with about 23k while the same thing compiled with XE7 gives 42k. Although, I can't see the benefits of keeping an outdated IDE running just to achieve some smaller exe files. Working with D5 takes me much more time than doing the same thing in XE7. If it weren't that I currently have to maintain an old project for Win95 I wouldn't have had any D5 installation up and running. If exe size is really a restriction there are several ways to achieve this. I for myself do seldom see this requirement.

    ReplyDelete
  2. +Uwe For the most part exe size is not an issue. It does pain me though that modern Delphi is so inefficient in this way. As was said in this thread, access over vpn is expensive. Of course, the clean solution is to sync files locally.

    I think where this really hurts is mobile. Do nothing apps that are >10Mb is a real problem.

    ReplyDelete
  3. I tried making a similar code using C++ on OSX. The "release" build is 23KB but it is linked to two shared libraries (the c++ standard library)

    ReplyDelete

Post a Comment