On 2/24/14 5:06 PM, S.A. wrote:
Thanks Daniel!

Tried to use #[no_std] as following:
use std::io::stdio;
#[no_std]
fn main () {
     stdio::println("Hello World!");
}

You need to use LTO, as Daniel said. Rust statically links by default rather than dynamically linking as most C compilers do.

The generated binary will still be larger than that of C, but this is a work in progress. I'm fairly confident at this point that we will be able to close this gap fairly far through splitting up vtables and using real TLS.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to