I am trying to develop a compiler based on the LLVM infrastructure. My language has a C like syntax and so I would like to leverage existing C compilers. Right now I am focusing on the frontend (lexical analysis, parsing), but I am confused as to which frontend would be the best approach. Clang, llvm-gcc or traditional flex/bison tools?
I am specially interested in the simplest solution which would allow me to generate LLVM IR code for later stages of my compiler.
If you want to code everything by hand, then I recommand you the LLVM tutorial Kaleidoscope:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With