Can we make a Rust program that’s as small as it’s assembler equivalent?

    • sugar_in_your_tea
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      IDK, I’m not aware of all the fancy asm commands, but compilers are, so a good compiler will probably produce better code than me. For example, simple loops could turn into a set of SIMD instructions or be unrolled, while I’d naively do a jump loop.