Compiling with LLVM | Emit LLVM IR | C++ | Compiler Hacking
Tim Morgan
I wanted to learn a bit about how LLVM works so I made a tiny little compiler that compiles numbers and strings to LLVM IR, compiles it, and runs it!
Here's the LLVM example code I started with: https://gist.github.com/seven1m/2ca74265cca9ef6f493ef1de87e9252d
About the Project: Natalie is a very early-stage work-in-progress Ruby implementation that compiles Ruby to an executable. It does so by compiling Ruby to C++ and feeding it to gcc or clang to produce a binary.
GitHub: https://github.com/seven1m/natalie
Twitter: https://twitter.com/timmrgn Discord: https://discord.gg/hnHp2tdQyn YouTube: https://www.youtube.com/timmorgan
#programming #compiler #cpp #llvm #ruby ... https://www.youtube.com/watch?v=QNdb6oqAlvk
2021-10-25
0.0 LBC
Copyrighted (contact publisher)
214442487 Bytes