Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^9: Perl 5 Optimizing Compiler, Part 4: LLVM Backend?

by BrowserUk (Pope)
on Aug 28, 2012 at 19:09 UTC ( #990310=note: print w/replies, xml ) Need Help??

in reply to Re^8: Perl 5 Optimizing Compiler, Part 4: LLVM Backend?
in thread Perl 5 Optimizing Compiler, Part 4: LLVM Backend?

It is when you get into the details, that casual discussion starts to get difficult. There are so many phases, it gets very hard to make it clear what we are talking about at any given point. (It is hard to keep them distinct in your (my!) own mind.)

I *think* we are talking about (roughly) the same things here.

  1. There is the bit of perl that parses the source code and builds the AST from the Perl programs source.

    This would need to be left pretty much as is. The whole perl defines Perl thing. This would need to be compiled (back to) C and then linked into an executable.

  2. Then there is the bit that converts the AST into byte code.

    I believe that this would need to be separated out and converted to produce IF.

  3. Then there is the bit of perl that ordinarily runs the bytecode.

    Not just the runloop, but all the code the runloop dispatches to.

    I think that should be compiled to IF and built into an IF library (.bc)

    It would be ""combined"" with the IF from stage 2, at runtime, and given to the JIT to convert to machine code.

All total speculation of course. And possibly completely impractical or impossible. But we won't know ...

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

  • Comment on Re^9: Perl 5 Optimizing Compiler, Part 4: LLVM Backend?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990310]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2018-03-21 05:49 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (263 votes). Check out past polls.