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

This isn't that conclusive of a test -- uninitialized memory is 0 relatively often.



Okay, that is conclusive. (And I'm pleasantly surprised by how readable GCC's source code is.)


This has nothing to do with memory. The x86_64 ABI returns values from functions in the RAX register.


Sure; same point applies though -- just because 0 happens to be in RAX doesn't mean it's defined behavior.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: