7 ms·
No perl?!?!?!?
by robertsd247 8y ago
No perl?!?!?!?
- detaro 8y agoIn a tool to study assembly output of compilers?
- hoytech 8y ago$ perl -MO=Concise -e 'my $v = 1234; $v *= 9876' a <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 5 <2> sassign vKS/2 ->6 3 <$> const[IV 1234] s ->4 4 <0> padsv[$v:1,2] sRM*/LVINTRO ->5 6 <;> nextstate(main 2 -e:1) v:{ ->7 9 <2> multiply[t2] vKS/2 ->a 7 <0> padsv[$v:1,2] sRM ->8 8 <$> const[IV 9876] s ->9 -e syntax OK
- 0xcde4c3db 8y agoThis tool is really built for AOT native code generation. Does Perl have a compiler like that? The ones I've heard of are all some flavor of compiling to bytecode followed by an interpreter or JIT.
- hoytech 8y agoFor perl5 there have been several attempts at AOT native code compilers. For example: http://rperl.org http://rperl.org
- deleted 8y ago[deleted]