Stream: cranelift

Topic: Simple cranelift implementation


view this post on Zulip Robin Lindner (Sep 27 2021 at 17:51):

Hi all, I want to learn a bit about Cranelift and write a simple compiler. I have now written a Windows batch parser and passed the appropriate instructions. How can I create an .exe (PE) or an ELF binary using my FunctionBuilder?

https://hastebin.com/azokohekow.rust

view this post on Zulip bjorn3 (Sep 27 2021 at 20:36):

You will need to use the cranelift-object crate for this. You can use it to produce an object file that you can then pass to a linker to create an executable.


Last updated: Nov 22 2024 at 16:03 UTC