For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > January 2005 > EXE file size









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author EXE file size
Robert

2005-01-12, 3:59 pm

I am using "pp" to create a console-less Windows EXE. The EXE size is
over 3MB and this is a very simple program. I have a Tcl/Tk app that
does that exact same thing and it is just over 1MB in size. I am
assuming that the Perl one is larger because the Perl DLL is included
and rather large itself.

What are some ways that I can cut down on the size of the EXE generated?

Robert
zentara

2005-01-13, 4:00 pm

On Wed, 12 Jan 2005 11:42:52 -0500, Robert <sigzero@gmail.com> wrote:

>I am using "pp" to create a console-less Windows EXE. The EXE size is
>over 3MB and this is a very simple program. I have a Tcl/Tk app that
>does that exact same thing and it is just over 1MB in size. I am
>assuming that the Perl one is larger because the Perl DLL is included
>and rather large itself.
>
>What are some ways that I can cut down on the size of the EXE generated?
>
>Robert


upx is available for windows, search for upx (ultimate packer for
executables).

On linux, if I pp a certain simple Perl script, I get
1707893 bytes in the executable.

If I strip it, it is down to 1099244 bytes.

The when I upx it, it is down to 491994 bytes.

Thats quite a space savings. Plus clients don't need any upx
libs just to run it.


--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com