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

"I was really surprised that assembly instructions make assumptions about how memory is organized and what information is in which registers."

This layout is a part of the specific architecture the compiler is generating the assembly code for so it better know where the stack pointer is stored on your platform :)

It's basically the same way as if you were manually writing Assembly code yourself - you would need to know what registers are used for what purpose on your platform.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: