Re:Compiler Explorer
by robertsd247 on Friday December 14, 2018 @09:14AM
(#18680901)
No perl?!?!?!?
[ Parent
| on HN ]
In a tool to study assembly output of compilers?
$ 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
Re:Compiler Explorer
by 0xcde4c3db on Friday December 14, 2018 @09:36AM
(#18681046)
This 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.
For perl5 there have been several attempts at AOT native code compilers. For example: http://rperl.org