Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: The Perl Compiler (turning perl scripts into binary executables)

by srawls (Friar)
on Jul 10, 2001 at 21:09 UTC ( #95365=note: print w/replies, xml ) Need Help??

in reply to The Perl Compiler (turning perl scripts into binary executables)

I'm with jouke, I'm very excited about this! I don't know much about how to turn something into a binary executable file, but I'm all up for learning. As a quick question, though, what do you think we should do with evals? That is, would we need the Perl Interpreter in the executable to handle an eval statement?

Update: Just incase it wasn't clear before: Count me in! I definitely would like to help code this. As for ideas, there are two main routes I can think of. One is to convert the perl code into relavent C code, this is probably a slow solution. The other is to convert it straight to a machine representation, this is probably not a portable solution. I just joined sourceforge, and can't wait to start. (P.S. I'll be gone tommorow for a robotics demonstartion, so if you try to contact me, I'll have to respond on Thursday)

The 15 year old, freshman programmer,
Stephen Rawls

  • Comment on Re: The Perl Compiler (turning perl scripts into binary executables)

Replies are listed 'Best First'.
Re: Re: The Perl Compiler (turning perl scripts into binary executables)
by Jouke (Curate) on Jul 11, 2001 at 11:10 UTC
    I think we would have to rely heavily on Perl itself. Not as a programminglanguage to write the compiler itself in, but the C-source of Perl to use, or the B::Bytecode or something to get to the backend of the Perl compilation process itself.

    I think the last thing we should do is to rewrite the Perl engine itself!! How could we ever keep up with new versions if we were writing every part ourselves?

    No, re-use what has been done, and write only the last part of the process, namely the creation of the binary executable.

    Jouke Visser, Perl 'Adept'
    Using Perl to help the disabled: pVoice and pStory
Re: Re: The Perl Compiler (turning perl scripts into binary executables)
by Anonymous Monk on Jul 10, 2001 at 21:31 UTC
    Observation 1: You can let the compiler out if the source doesn't contain the letter 'e'! Observation 2: Normal programs can be written without the letter 'e'. 'E' doesn't count. counts as source of course. If it doesn't contain 'e' you are in the clear! You must compile it too (beforehand ;-) . But if it is a config-file as the name suggests, therefore hopefully written by the program, the compiler could check the format and make a readroutine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95365]
[Tux]: so, another app with gtk GUI had something similar, but it defined the IM_MODULE(s) as cedilla.
[Tux]: when I set QT_IM_MODULE and GTK_IM_MODULE both to c<xim> and *unset* XMODIFIERS, all works fantastic
Tux => $HOME
[Tanktalus]: great, now I'm going to have to convert html codes to text for display... :)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-09-25 21:14 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (291 votes). Check out past polls.