"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.
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.