470,834 Members | 1,620 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,834 developers. It's quick & easy.

Perl B:Bytecode anyone ?


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 ?
Jul 19 '05 #1
0 1913

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jonathan Neve | last post: by
6 posts views Thread by Benjamin Scherrey | last post: by
33 posts views Thread by Maurice LING | last post: by
1 post views Thread by praba kar | last post: by
4 posts views Thread by Ben | last post: by
2 posts views Thread by jeffrey.bigham | last post: by
4 posts views Thread by kwatch | last post: by
6 posts views Thread by www.gerardvignes.com | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.