Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Comparison summary between the Rust inspiration and the Nim version:

* Nim/GCC gains 2 bytes by smartly reusing the previously set AX register's value to set DI where Rust/Clang uses an immediate

* Nim can't express that stuff after the EXIT syscall is unreachable and wastes a byte on a RETQ.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: