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

totally unportable and undefined behavior


I have strong feeling that while this obviously works on i386 linux (and probably any unix for that matter) if it works on even amd64 it's just a pure coincidence.


It shouldn’t work on amd64 because the x64 calling convention puts the arguments in the registers first




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: