Content deleted Content added
grammar |
|||
Line 4:
==Implementation==
===Opcodes===
The Perl compiler outputs a compiled program into memory as an internal structure which can be represented as a tree graph in which each node represents an opcode. Opcodes are represented internally by [[typedef]]s. Each opcode has
Perl's opcodes interpreter is implemented as a tree walker which travels by opcode tree in execute order from start node, following the ''next'' or ''other'' pointers. Each opcode
The phase of compiling the Perl program is hidden for the end user, but it can be exposed with B Perl module<ref name="B">{{cite web | url=http://search.cpan.org/perldoc?B | title=B - The Perl Compiler Backend}}</ref> or other specialized modules
An example of compiled simple [[Hello world]] program with a help of B::Concise Perl module, dumped in execute order:
|