this post was submitted on 18 Feb 2024
48 points (100.0% liked)

Rust

5942 readers
2 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 8 months ago

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.