What is the best compression algorithm for executable files?

frowny May 23, 2011
Pinterest Stumbleupon Whatsapp

What is the best algorithm to use to compress executable files? They need to work correctly and maintain integrity.

  1. Bruce Epper
    May 24, 2011 at 12:57 pm

    The best compression algorithm for executable files would depend entirely on the characteristics of the file being compressed.  To see how this kind of thing is accomplished, you can download the source code from UPX 3.07 to see how they did the analysis and chose an appropriate compression algorithm for the file it is compressing.  In order to work correctly, the file still needs to be decompressed in memory so it can execute properly.