tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Wednesday, 14-Nov-2018 09:45:49 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
    • Annika Backstrom
    • kungtotte

    @kungtotte @annika You can still reduce the size of the binary using gcc's magic (I never remember how to do it), but it's always quite big comparing with the binaries C generates.

    In conversation Wednesday, 14-Nov-2018 09:45:49 CET from mastodon.social permalink
    • kungtotte (kungtotte@fosstodon.org)'s status on Wednesday, 14-Nov-2018 09:54:42 CET kungtotte kungtotte
      in reply to
      • Annika Backstrom

      @ekaitz_zarraga @annika yeah you can jump through hoops to get there (you can with Nim too), but Nim is already good enough out of the box for 90% of cases that you don't have to do that. It also makes source distribution easier as people can compile using default-ish settings on their system and not get massively bloated binaries.

      nim c -d:release --opt:size --passL:static makes for a size optimized statically linked release build. Not hard to remember.

      In conversation Wednesday, 14-Nov-2018 09:54:42 CET permalink
      Ekaitz Zárraga 👹 repeated this.
    • bugaevc@mastodon.technology's status on Wednesday, 14-Nov-2018 13:25:26 CET bugaevc bugaevc
      in reply to
      • Annika Backstrom
      • kungtotte

      @kungtotte @ekaitz_zarraga @annika I think you forgot to `strip` it, of course it weighs way less without debuginfo for the whole stdlib:

      $ cat fib.rs
      fn main() {
      let mut a = 0;
      let mut b = 1;

      for _ in 0..10 {
      println!("{}", b);
      let c = b;
      b += a;
      a = c;
      }
      }
      $ rustup run nightly rustc fib.rs
      $ du -sh fib
      2.4M fib
      $ strip fib
      $ du -sh fib
      196K fib

      In conversation Wednesday, 14-Nov-2018 13:25:26 CET permalink
      Ekaitz Zárraga 👹 repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.