Can rustup target Rust bytecode?


When you do rustc -emit=llvm-bc, you get a LLVM bytecode which has platform/target specific code (it uses mainCRTStartup on Windows), so I’m looking to know if I can rather get Rust bytecode directly.



Rust doesn’t have its own bytecode. The compiler has several internal data structures but they’re not public APIs.