As far as I know perlcc is the only perl compiler, but it is still in a kind
of alpha stage, not developed, and it doesn't work really.

There are other programs that don't compile the perl code, but create a
binary executable file which includes the program, the perl interpreter, and
all the other perl modules which are used by the program.
Of course, the program can be very big, just for a few lines of perl code...
But some of these programs can create a smaller executable which doesn't
include the perl interpreter, and it can be copied separately on the target
computer (perl58.dll).

The program which works the best I found to be Active State's perlapp which
is included in Perl Developer Kit.
It works better and creates smaller executables and there are other helpful
programs in PDK.

Another program which works pretty well but which usually creates bigger
executables is PAR. Its advantage is that it is free and it can be
downloaded from search.cpan.org.

Another one is perl2exe, but I didn't find it to work too well.


Teddy

----- Original Message ----- 
From: "Chris Devers" <[EMAIL PROTECTED]>
To: "Brent Clark" <[EMAIL PROTECTED]>
Cc: "Beginners Perl" <beginners@perl.org>
Sent: Tuesday, November 01, 2005 16:28 PM
Subject: Re: perl compilers


> On Tue, 1 Nov 2005, Brent Clark wrote:
>
> > Just a thought, is it possible to compile perl code in to some type of
> > binary format file, and then perl can execute the bin file.
> >
> > Just somthing I was thinking.
>
> http://www.google.com/search?q=perl+compiler
>
> But then, I'm sure you spent the three seconds it would take to do a
> search for the hundreds of hits that 'perl compiler' turns up before
> repeating this FAQ to the list, right? Of course you did :-)
>
>  * * *
>
> The short answer is that yes, it's possible, with the help of tools like
> perlcc and Perl2EXE, but these generally don't work as well as most
> people would prefer. For one thing, they build everything in, so your 20
> line Perl script ends up being 5 or 10 mb or more compiled because the
> binary has to include both the Perl executable binary as well as the
> binary versions of any CPAN modules your script depends on. Yow!
>
> In most cases, particularly on civilized platforms where Perl is likely
> to be installed on the system from the start (e.g. everything but
> Windows), you're better off just distributing the regular text version
> of your scripts. That way, they end up being smaller, faster, and much
> easier to maintain.
>
> But yes, if you really want to do this, it's possible. As the three
> second Google search I'm sure you did would have already told you :-)
>
>
> -- 
> Chris Devers
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to