Jan 27, 2000, 4:54 AM
Post #6 of 15
Re: is there a way to compile perl to binary exe.
[In reply to]
Thanks for the lead I will check that one out. I also found some information on another way to compile perl code. It still is somewhat beta but ships with 5.005 perl.
B::Bytecode, B::C, and B:CC. These will produce code respectfully. B::C creates C code so that you can compile using a C compiler.
The standard release comes with a perlcc tool to help manage the back-end code generators.
Three different code generators are supported:
B::Bytecode -- Perl compiler's bytecode backend
B::C -- Perl compiler's C backend
B::CC -- Perl compiler's optimized C translation backend
Also, Perlcc tool that ships with 5.005. This one will compile the code for you and will give you the option to include the Lib files for stand alone exe's. I belive it replaces the perl2exe.
'perlcc' is the frontend into the perl compiler.
Typing 'perlcc a.p' compiles the code inside a.p into a standalone executable,
and perlcc A.pm will compile into a shared object, A.so,
suitable for inclusion into a perl program via ``use A''.
%prompt perlcc a.p b.p c.p -regex 's/\.p/\.exe'
# compiles into 'a.exe','b.exe','c.exe'.
I will do some more test with this and give more detailed feed back.
Thanks for the help.