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

It does suck that the usual 64-bit calling convention limits the size of strict passed by value to 64-bits :/.


At least linux AMD64 ABI allows passing (and returning) 128 bit structures by registers, which is perfect for the ptr/len case.


You could store two 32 bit fields and cast the second to a pointer when needed, and the first treat as a length.




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: