Why does the Rust compiler generate huge executables? -
compiling simple hello world application this:
fn main() { println!("hello, world!"); }
generates relatively huge 822 kb executable using default compiler options (rustc hello.rs
).
why happen , best way reduce size of executable?
the standard library linked statically default. can change passing
-c prefer-dynamic
option compiler.rust still young language incompletely optimized compiler. there still lot of room left improvements in compilation speed, code speed , size, wording of error messages , on.
Comments
Post a Comment