Email or username:

Password:

Forgot your password?
Top-level
oli

@notgull maximally dumb idea: could we write a cranelift backend that produces C code instead of machine code, and then compile that on the target machine?

3 comments
FSMaxB

@oli @notgull From a bootstrapping perspective, how is that different from just cross compiling though?

Esteban K�ber :rust:

@FSMaxB @oli @notgull the only difference would be (depending on what C version is targeted) that you would have a single backend for any platform that has a C compiler, instead of needing one backend per platform.

Esteban K�ber :rust:

@oli @notgull it's not the main goal of the project, but github.com/FractalFir/rustc_co has some support for C codegen. It's where I'd start if we wanted to put some extra effort on this.

Go Up