▲ 4 r/Compilers
Is there a real benefit in using multiple targets on a compiler?
I was working in a compiler I created when I see Compilers, and I never give up on the first interpreter I created that day (tree-walk).
The compiler is on Python and via a protobuf(I use it as a High Level IR), not only the interpreter but a stack based VM(c++) and I was looking to create a new backend to generate Web Assembly using JS/TS I know isn't the best option but I want to avoid LLVM as a target for now.
So, the question is: is really a good practice keep alive the interpreter even if the general pipeline ends in the VM?
(Note: my English ain't the best but I tried to make the post the comprensible I can)
u/_dasion_ — 3 days ago