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
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