Hacker News new | ask | show | jobs
by altschuler 4697 days ago
I can highly recommend going through this tutorial if you're interested in LLVM or just compilers in general. While it lacks some polish here and there, it's still quite easy to follow and what you end up with is some actually "useable".

It's also rather easy to extend upon what is made, adding your own features.

2 comments

I'm very curious if I can compile static Python code with LLVM and use it on Cortex-M4 microcontrollers.

I have seen some code which compiles Clang to STM32F4 microcontrollers and I have found py2llvm can compile Python into LLVM IR.

I am wondering if it is even worth it, (but according to py2llvm you can get almost C like performance).

And for what it is worth you can submit patches to improve the tutorial, after going through it that is what I did.