in reply to Re: Compress exe file size
in thread Compress exe file size

Hi, Thanks for your immediate reply. I have a perl script. when I convert using the following command: pp -gui -o xmpPDF1.exe xmpPDF.pl the resulted exe file size is "3,664 KB" when I use, as per you said: pp -gui -z 9 -o xmpPDF2.exe xmpPDF.pl the resulted exe file size is "3,657 KB" So it only reduced "7 bit". But when I create exe using "perlapp.exe", the size is very minimum ap +proximately 500 to 700 KB only. Can I make it reduce the exe size in such highly compressed way? REgards, Srikrishnan

Replies are listed 'Best First'.
Re^3: Compress exe file size
by afoken (Chancellor) on Jun 20, 2009 at 08:02 UTC

    The difference is that pp generates a standalone application containing everything your script needs, including the entire perl interpreter and all required DLLs, whereas perlapp just wraps your script and a stub that loads the existing perl interpreter. The pp-generated EXE runs on a computer without perl, the perlapp-generated one doesn't.

    Choose what you need: If the target computer has your perl version installed, use perlapp. If it doesn't, use pp. Or even better: Distribute the raw script and a perl installer.

    (And by the way: The difference is not 7 bit, but 7 KBytes = 7 * 1024 Bytes * 8 Bit / Byte = 57.344 bits.)

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Hi, Sorry I wrongly typed bit instead of kbyte. Thanks for your valuable suggestions. REgards, Srikrishnan
Re^3: Compress exe file size
by Anonymous Monk on Jun 20, 2009 at 07:59 UTC