▶️ How to build a compiler with LLVM and MLIR - 12 Target code generation
In this episode I talk about the native code generation process and linking process. I go a bit deeper on the concepts of an object file and how a linker links them together. Last but not least, I demonstrate how to generate target code out of the LLVMIR and generate an executable file.
- Website: https://serene-lang.org
- Repository: https://git.sr.ht/~lxsameer/Serene
- Branch: https://git.sr.ht/~lxsameer/Serene/tree/ep12
- Slides(kinda): https://git.sr.ht/~lxsameer/Serene/tree/ep12/item/docs/videos.org
Resources:
- 20 part linker essay: https://lwn.net/Articles/276782/