Replies: 1 comment 8 replies
-
Yes, you are mostly right. The difference is that LLVM is a huge compiler framework implementing huge number of optimizations (hundreds of them ) and supporting more targets and MIR-generator implements small number (less than 10) of optimizations but most valuable ones. Another important difference MIR generates machine code in memory and LLVM generates assembler and/or binary object format (elf/macho). Although in some way MIR could be considered as a custom machine independent object format. In the future MIR-generator might generate assembler code too.
You can write own (language) front-end generating MIR and through MIR-generator machine code for it. |
Beta Was this translation helpful? Give feedback.
-
I've read the README and also the blog posts and from my understanding, MIR is an alternative to LLVM right? Then if I'm right, c2m is a C fronted that uses the MIR as a backend. So just like the LLVM does with Clang? If that's right, then can I create my own fronted and implement my language (or modify the current C one)?
Maybe I'm not right in everything so a little bit of clarification would be nice
Beta Was this translation helpful? Give feedback.
All reactions