Reduce exe file

后端 未结 5 1126
失恋的感觉
失恋的感觉 2020-12-07 18:09

Using Delphi (or in general any tools, if exist of course), is it possible to reduce size of an exe file, removing all code that not is used but that is present there?
(

5条回答
  •  一生所求
    2020-12-07 18:46

    reduce the application EXE size - excellent article

    (Taken from the link above)

    Generally, EXE files created with Delphi are larger than EXE files created with another programming language. The reason is the VCL. (Sure, VCL has many advantages...)

    There are several ways to reduce a EXE's size:

    01) Use a EXE-Packer (UPX, ASPack,...)-UPX

    02) Use KOL.

    03) Write your application without VCL

    04) Use the ACL (API Controls Library)

    05) Use StripReloc.

    06) Deactivate remote debugging information and TD32.

    07) You might want to put code in a dll.

    08) Don't put the same images several times on a form. Load them at runtime.

    09) Use compressed images (JPG and not BMP)

    10) Store less properties in DFM files

提交回复
热议问题