Re:A primer on code generation in Cranelift
by zinclozenge on Saturday May 08, 2021 @12:47PM
(#27088744)
I'd love it if there was a guide/tutorial on how to use it as an alternative to LLVM.
[ Parent
| on HN ]
Re:A primer on code generation in Cranelift
by runevault on Saturday May 08, 2021 @03:09PM
(#27089872)
I dunno that it is meant to be a full on replacement. Rust intends to use it as an alternative backend for debug builds that focuses on really fast build times with little if any optimizations.
Re:A primer on code generation in Cranelift
by zinclozenge on Saturday May 08, 2021 @11:05PM
(#27092858)
It's not, but I'm also not intending to write a production grade language either.
Re:A primer on code generation in Cranelift
by winter_blue on Saturday May 08, 2021 @05:20PM
(#27090804)
Just FYI, there's an LLVM tutorial (for C++), but it's quite succinct, and you have to figure a lot of things out on your own: https://llvm.org/docs/tutorial/