here: https://github.com/golang/go/files/447163/GoFunctionsInAssembly.pdf
在 2018年4月17日星期二 UTC+8下午10:15:07,Ian Lance Taylor写道: > > On Tue, Apr 17, 2018 at 5:33 AM, <buaa...@gmail.com <javascript:>> wrote: > > > > 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. > > > > 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. > > I don't think the diagram you are looking at describes how the Go > assembler works. I note that it seems to say IBM on the side. Where > did you find the diagram? > > Ian > -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.