in reply to Saving parsed perl for faster loading?

There's no official way of doing this. There have been many attempts though. But since this opens the door to "binary distribution of source code", there has never been an enormous movement in getting this working. Ilya might have it working under OS/2 though.

But nowadays, there are hooks that can be called after compilation, and you can access the bytecode, so it might be possible, although there may be dragons to be slayed before having a stable way of doing so.

So, yes, it may be possible, but there's no off-the-shelf solution that I am aware of.

Abigail

  • Comment on Re: Saving parsed perl for faster loading?

Replies are listed 'Best First'.
Re: Re: Saving parsed perl for faster loading?
by Anonymous Monk on Dec 01, 2003 at 15:04 UTC
    I think it's called ByteLoader (B::Bytecode).
      Looks like a good solution for me, so I've tried it out (on a Windows machine) with a simple code file (holding : print "hello compiled world";) and the command C:\>perl -MO=Bytecode compiled.pl > result.pl. This result in a series of errors : 1: no such instruction "" ... 110: no such instruction "" There were 110 assembly errors Excuse me if I'm wrong, but the documentation about ByteLoader is rather skinny. Is there a good source for information about this way of working out there? All help is welcome