how to reference local variables on the stack properly
问题 Enter in function, standard prologue push rbp mov rbp, rsp sub rsp, 128 ; large space for storing doubles, for example How to reference local variables now, via rsp + positive offset, or via rbp + negative offset? Reading https://en.wikibooks.org/wiki/X86_Disassembly/Functions_and_Stack_Frames, indeed quite understandable. It writes ...the value of esp cannot be reliably used to determine (using the appropriate offset) the memory location of a specific local variable. To solve this problem,