Hacker News new | past | comments | ask | show | jobs | submit login

What I’d like something similar to QBE, but that actually compiles/targets LLVM.

So, essentially, a beginner-friendly intermediate layer on top of LLVM.




You could transpile to C and feed that to LLVM/Clang or e.g. to TCC (https://github.com/TinyCC/tinycc).


Sure, but the idea is to avoid C and compile to a simplier IR, like qbe. And then compile that to native code in 1/10 of the time and memory LLVM or GCC do.


The question was "a beginner-friendly intermediate layer on top of LLVM". If you use TCC instead of Clang or GCC compilation speed is very fast.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: