48
A very small Rust binary indeed
(darkcoding.net)
That assembly program the author compares to is waay bloated. This guy managed with 105 bytes: https://nathanotterness.com/2021/10/tiny_elf_modernized.html (that is with overlapping part of the code into the ELF header and other similar level shenanigans). ;)
All kidding aside, interesting article.
i think nothing can outperform simple asm for simple operations.
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.
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits