Can rustup target Rust bytecode?


#1

When you do rustc -emit=llvm-bc main.rs, 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.

Anyway?


#2

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