Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
winter_blue
on Dec 2, 2020
|
parent
|
context
|
favorite
| on:
QBE vs. LLVM
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
on Dec 2, 2020
[–]
You could transpile to C and feed that to LLVM/Clang or e.g. to TCC (
https://github.com/TinyCC/tinycc
).
rurban
on Dec 2, 2020
|
parent
[–]
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.
Rochus
on Dec 2, 2020
|
root
|
parent
[–]
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:
So, essentially, a beginner-friendly intermediate layer on top of LLVM.