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?
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?
Rust doesn’t have its own bytecode. The compiler has several internal data structures but they’re not public APIs.