简体   繁体   中英

How to compile Rust for MMIX

Is it possible to compile Rust for the MMIX architecture?

From what I understand about the Rust compiler (which is admittedly not a whole lot) it uses LLVM as a backend; coming from a C and gcc background, I know that gcc can produce MMIX executables but I'm not sure how to get the same result from rustc.

Does anyone know how one would go about doing this? Or pointers as to where I should start searching?

Thank you

Not a super helpful answer, but you could look at my pull request where I implemented support for powerpc: https://github.com/rust-lang/rust/pull/20980

(And then the followup where I unbroke some stuff in libc that I messed up the first time around: https://github.com/rust-lang/rust/pull/21500 )

Some things have moved around in the meantime, but this should give you a general idea of which places you'll need to poke. I feel like I should mention though that while the general approach to architecture support has been to officially support few architectures, but hold in tree others, it's worth noting that especially boutique arches that are breakage prone might be an uphill battle if you want official support in core: https://github.com/rust-lang/rust/pull/26505

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM