Re: [dev] Project ideas: goblin

From: Jean-Christophe Petkovich <jcpetkovich_AT_gmail.com>
Date: Tue, 25 Nov 2014 14:22:03 -0500

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

This archive was generated by hypermail 2.3.0 : Tue Nov 25 2014 - 20:36:08 CET