Official doc (golang.org/doc/asm) said that:

The SP pseudo-register is a virtual stack pointer used to refer to 
frame-local variables and the arguments being prepared for function calls. 
It points to the top of the local stack frame, so references should use 
negative offsets in the range [−framesize, 0): x-8(SP), y-4(SP), and so on.

And I've found a slide introduce the amd64 stack frame layout.

<https://lh3.googleusercontent.com/-m6z0_NHL4jg/WtXpGttYH1I/AAAAAAAAAAM/Fgq-VgMWRHYJfBalsbNaYclNndfYKAcTgCLcBGAs/s1600/5D128442-B700-4E75-B555-691C78C82812.png>
So, is the -framesize a correct value? If I count from the SP(virtual 
register), the min address will exceed the stack frame address range.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to