4 ms·
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.
by winter_blue 6y ago
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.
- Rochus 6y agoYou could transpile to C and feed that to LLVM/Clang or e.g. to TCC (https://github.com/TinyCC/tinycc https://github.com/TinyCC/tinycc).
- rurban 6y agoSure, 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.
- Rochus 6y agoThe 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.