473,385 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Perl B:Bytecode anyone ?

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jonathan Neve | last post by:
Hi all! I'm wondering what would be involved in making a Delphi to bytecode compiler... Does anyone have any experience writing compilers, that could give me some advice? The reason I think...
6
by: Benjamin Scherrey | last post by:
I'm curious as to how difficult it would be to take a string that contains compiled bytecode, load it into memory, give it a function name then execute that function. I'm thinking of a database...
33
by: Maurice LING | last post by:
Hi, I've been using Python for about 2 years now, for my honours project and now my postgrad project. I must say that I am loving it more and more now. From my knowledge, Python bytecodes are...
1
by: praba kar | last post by:
Dear All, I want to know difference between Python-cgi and Perl-cgi and also I want to which one is efficient from the performance. regards Prabahar
4
by: Ben | last post by:
Does anyone have any experience using the TrueType bytecode interpreter to display fonts in PHP under Windows? I'm running Windows XP, PHP 4.3.11, GD 2.0.28 with FreeType enabled. It all works...
2
by: jeffrey.bigham | last post by:
Hello, I'm writing a program that needs to read input line by line and analyze each, and it needs to be as efficient as possible. I wrote the following sample program that works, but is 10...
11
by: Michael Spencer | last post by:
Announcing: compiler2 --------------------- For all you bytecode enthusiasts: 'compiler2' is an alternative to the standard library 'compiler' package, with several advantages. Improved...
4
by: kwatch | last post by:
Hi, It is possible to get bytecode from code object. Reversely, is it possible to create code object from bytecode? ex. ## python code (not a module) pycode = '''\ print "<ul>\n" for item...
6
by: www.gerardvignes.com | last post by:
Hi, Have you run into a situation where you had to switch from PHP 4.x.x to Perl 5.x.x in order to get better performance? I am using an OO approach to PHP for my website's server code. There...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.