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

The purpose of the wasm rules (eg declaring variables/function args instead of having push/pop operations) is to allow the compiler to efficiently determine that functions follow the calling convention and won’t be able to mess with non-wasm functions they call or are called by. It means that you can put return pointers on the stack without the wasm being able to ever touch return pointers.


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

Search: