You may have the answer there. On my system, with the same single-line script, pp and Perl2Exe create exes of 1,409,758 and 365,071 bytes. So, my system's exe is 560k or so smaller than yours.
But Perl2Exe seems to handle this, since its "hello" exe is 100k or so smaller than the one it creates for my 120-line script, which is to be expected, because there are two modules required, as well. I typically distribute exes by e-mail, so size is important for that reason. Also, they get moved around a lot, and most of the older machines my clients use only take floppies. (I expect this to be a non-issue in a few years, of course, but a few years ago, I'd have said the same thing.) Mark On Friday, February 13, 2004, 9:05:11 AM, the.noonings wrote: tn> This is not an answer. It is only comments, and more information on the tn> same subject. It also has a related question at the end. tn> I have "print hello" in a file called hello.pl, as you can see below tn> > type hello.pl tn> print "hello" tn> You can see the size of the exe that was created on Windows XP below tn> 02/12/2004 03:22 PM 1,978,898 a.exe tn> It works, as shown: tn> > a.exe tn> hello tn> I can ask, why is my exe bigger than yours, when you have more lines of tn> code? Well, I have installed a lot of non-core modules on my machine. I tn> also have bits and pieces -- junk -- scattered amongst my perl bin tn> directories. Bad, bad, I know, but I do. I am guessing *note: only tn> guessing* that the increased size is due to pp packing some extras along tn> with the core modules. tn> Now let me compare the above with a real application with many thousands of tn> lines of code. The application includes Tk menues and such, too. It's exe tn> size is tn> 02/11/2004 03:29 PM 2,820,064 test_1.exe tn> If I take into account that the big program is bundling Tk as well as the tn> core modules, plus some other modules that hello.pl does not need, then I tn> have to say that it looks like there is not a whole lot of difference what tn> gets bundled. The number of lines of code in your program is not tn> necessarily relevent. At least not until it begins to be comparable to the tn> base of what gets packed for all programs. This is not a worry for me. tn> Even my smallest machine has hundreds of megabytes of storage capability. I tn> am just curious about it. tn> ****Is my surmising true?**** tn> ----- Original Message ----- tn> From: "Mark A. Chalkley" <[EMAIL PROTECTED]> tn> To: <[EMAIL PROTECTED]> tn> Sent: Friday, February 13, 2004 1:40 AM tn> Subject: Re: First-time user questions... >> So, to recap: >> >> I have a script of about 120 lines, which explicitly uses only two tn> modules: >> CipherSaber and PPMd. >> >> pp -d and Perl2Exe -small create exes of 733kb and 123kb, respectively. >> >> pp and Perl2Exe create exes of 1528kb and 471kb, respectively. >> >> Obviously, these aren't typical results, according to what I've read in tn> the >> mailing list archives. Does anyone have any idea why? >> >> Thanks, >> >> Mark >>
