
brian.hayes
User
Jan 27, 2000, 4:54 AM
Post #6 of 15
(942 views)
|
|
Re: is there a way to compile perl to binary exe.
[In reply to]
|
Can't Post
|
|
Hello again, 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. Perl.com says: 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. perl.com says: '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''. Usage: %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. Brian Hayes
|