Perl B:Bytecode anyone ?

Discussion in 'Perl' started by Andrew Lambert, Nov 13, 2003.

  1. 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 ?
     
    Andrew Lambert, Nov 13, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. zku

    create java bytecode

    zku, Jul 29, 2003, in forum: Java
    Replies:
    3
    Views:
    877
    Chris Smith
    Jul 30, 2003
  2. JDS

    Anyone?? Anyone at all??

    JDS, Sep 26, 2005, in forum: HTML
    Replies:
    2
    Views:
    398
    Montgomery BOO...URNS
    Sep 29, 2005
  3. Steve Williams

    Anyone? Anyone?

    Steve Williams, Sep 16, 2003, in forum: Python
    Replies:
    0
    Views:
    401
    Steve Williams
    Sep 16, 2003
  4. gregarican

    Anyone, anyone...Bueller?

    gregarican, Jun 22, 2007, in forum: Ruby
    Replies:
    2
    Views:
    107
    gregarican
    Jun 22, 2007
  5. ccc31807

    Perl to Java bytecode

    ccc31807, Dec 8, 2009, in forum: Perl Misc
    Replies:
    1
    Views:
    181
    rabbits77
    Dec 9, 2009
Loading...

Share This Page