in reply to Re^3: Which is faster ?
in thread Which is faster ?

I asked about "-MO=Concise" because its output reminded of Assembly
so i wandered if there's a way to convert a perl script into an .asm file ?
I need it because I'm working on a program that evantually I want to "convert" into a microchip,
therefore, I need an asm prototype of my program for some machines in an electronic facility
in my town to make a chip out of my "algorythm".
So is there a way to convert perl to asm ?

Replies are listed 'Best First'.
Re^5: Which is faster ?
by moritz (Cardinal) on Jun 04, 2008 at 17:54 UTC
    So is there a way to convert perl to asm ?

    No, not really. There are few programs that attempt to turn perl into a "real" executable, by linking libperl and the bytecode into a common executable, but I doubt that it works for non-standard CPUs, and some of these attempts, notably perlcc, were already abandoned.

    Perl does produce an op tree that is comparable to java's byte code (but still very different), but usually it doesn't leave the interpreter.