Gregor Best writes:
> How big are Rust binaries on average? Comparable to something C-like, or
> Go-like?
When they are dynamically linked, they are small enough for my tastes.
~ $ cat hello-world.rs
fn main() {
println!("Hello World!")
}
~ $ rustc hello-world.rs -o hello-world -C prefer-dynamic
~ $ du -h hello-world
12K hello-world
~ $ cat hello-world.c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello World!");
return 0;
}
~ $ gcc hello-world.c -o hello-world
~ $ du -h hello-world
8.0K hello-world
--
Jean-Christophe Petkovich
Received on Tue Nov 25 2014 - 20:22:03 CET