Announcement

Collapse
No announcement yet.

GNU Shepherd 0.6 Released - Adds Support For One-Shot Services

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by wswartzendruber View Post

    I just did an experiment writing the shortest program that returns 1, in both C and Rust. I used level 2 optimizations.

    C (GCC): 18 KB
    Rust: 255 KB
    Congrats, you discovered that GCC links libc dynamically, while rustc links it's standard library statically.

    The following page lists, what you can do to get smaller binaries:

    https://github.com/johnthagen/min-sized-rust

    His minimal example, which only prints "Hello World!" is 8 kiB large.

    Comment


    • #32
      Oh great, I can use it to start systemd then.

      Comment

      Working...
      X