3 ms·
Compile to LLVM IR then target C?
by crb002 8y ago
Compile to LLVM IR then target C?
- nuclx 8y ago-march=c was apparently removed from LLVM? See https://stackoverflow.com/questions/5180914/llvm-ir-back-to-human-readable-source-language https://stackoverflow.com/questions/5180914/llvm-ir-back-to-... I didn't know that it existed in the first place and what i expected was a bit of a higher level approach. Not even sure if going through Rust -> LLVM IR -> C -> asm would have a negative effect on performance, i.e. if the C code reconstructed from LLVM IR is optimal.