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:

    🦀 How to minimize Rust binary size 📦. Contribute to johnthagen/min-sized-rust development by creating an account on GitHub.


    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