I googled but couldn't find it. are there bindings for Cranelift? (Looking mostly for wasm, x86_64, i386 and arm support); i'm looking to emit cranelift bitcode and turn it into object files.
(ie as an alternative to replace say llvm)
C bindings?
that would be the nicest for me. I saw the c bindings for wasm, but not looking to write /embed a runtime
(But if it 's say c++ or anything else, I can just call whatever it has underneath, plain rust itself does'nt have a stable abi for me to call from my non rust compiler)
I don't believe there's C bindings to cranelift yet
(Also hi, I think you're ki9a, it's j`ey from the #llvm days)
yes!
cool
:) I'm not looking to switch from llvm; but to use this as an alternative backend for when I want a faster build process.
Similar to what some people want to use cranelift w/ rustc for
exactly. except rustc has the advantage that it's written in , well, rust
my rust is not good enough (read: haven't really used it at all) to start a process like this myself just yet
is there something like: https://github.com/bytecodealliance/simplejit-demo that doesn't jit but generates say .o files? or even links?
https://github.com/bytecodealliance/simplejit-demo/tree/faerie
Is a port of simplejit-demo to use the faerie backend to write a .o file
So as my first rust project; I was thinking of writing bindings like https://gist.github.com/carlokok/fbe07cf198064e9bf82734639be09261 (work in progress); would there be any interest in publishing this and/or contributing it ?
(Obviously not until done & once it acutally works)
So this C code https://gist.github.com/carlokok/4419832f5d5371d0de52dc6c68f331e3 works now (contains result too)
Last updated: Nov 22 2024 at 17:03 UTC