A Complete Guide to LLVM for Programming Language Creators
December 24, 2020
I have a small request:
Share This On Twitter
Who’s this tutorial for?
This series of compiler tutorials is for people who don’t just want to create a
toy language.
You want objects. You want polymorphism. You want concurrency. You want garbage collection. Wait you don’t want GC? Okay, no worries, we won’t do that :P
If you’ve just joined the series at this stage, here’s a quick recap. We’re designing a Java-esque concurrent object-oriented programming language
Bolt. We’ve gone through the compiler frontend, where we’ve done the parsing, type-checking and dataflow analysis. We’ve desugared our language to get it ready for LLVM - the main takeaway is that objects have been desugared to structs, and their methods desugared to functions.