4 ms·
I wrote 'multiple codegen architectures' instead of 'multiple architectures for codegen'. As far as I have done in the toy compilers and seen the things in act
by tiu 1y ago
I wrote 'multiple codegen architectures' instead of 'multiple architectures for codegen'.
As far as I have done in the toy compilers and seen the things in actual production ready compilers, the codegen is still very much tied to the one thing or the other rest llvm.
- elcritch 1y agoNim has multiple backends and is relatively mature. It’s fairly readable as compilers go. There’s also a new experimental rewrite of the Nim compiler called Nimony which targets a new intermediate called NIFC. That is intended to the be transformed to C, LLVM, JavaScript, etc.
- tester756 1y ago>I wrote 'multiple codegen architectures' instead of 'multiple architectures for codegen'. You want to generate e.g x86 + ARM + RISCV, yea?, and shouldnt it be a result of modular architecture? like your various codegens just take your AST and generate output