Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl B:Bytecode anyone ?

Reply
Thread Tools

Perl B:Bytecode anyone ?

 
 
Andrew Lambert
Guest
Posts: n/a
 
      11-13-2003
Hi,

I've been trying to compile perl scripts into bytecode. Now, from what I
understand I can use either perlcc -B script.pl or perl -MO=bytecode
script.pl to do this (whats the difference between these two methods anyway
?).

If I use perl -MO=bytecode, both versions I've tried dump seemingly random
ascii characters to the screen. ActivePerl-5.8 completes with 'script syntax
OK' while the standard redhat perl completes with 'No package specified for
compilation ...'. However, in either case, no output files are generated.

If I use perlcc -b, then activeperl-5.8 seems to complete OK, producing an
'a.out' file, while the redhat perl finishes with 'Can't call method "objix"
without a package or object reference at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/B/Bytecode.pm line 355'.

So, if running perlcc -b with activeperl-5.8 has actually worked, how do I
eventually run the a.out file ?

I realize that the bytecode compiler is supposed to be experimental but has
anyone had any success ?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments