Re: [go-nuts] Questions about assembly and calling conventions

2017-03-24 Thread nsajko
> On previous versions the assembly output reported the base register as FP but the offset was from SP. That's it! Go 1.8 had a bug. ;) Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving em

Re: [go-nuts] Questions about assembly and calling conventions

2017-03-24 Thread 'Keith Randall' via golang-nuts
The FP pseudoreg has been dropped from assembly output (on tip). All offsets are from SP. On previous versions the assembly output reported the base register as FP but the offset was from SP. See https://github.com/golang/go/issues/19458 and referents. On Friday, March 24, 2017 at 12:01:06 PM

Re: [go-nuts] Questions about assembly and calling conventions

2017-03-24 Thread Rob Pike
The assembly documentation in golang.org/doc/asm.html is accurate in this respect, I believe. By "in this respect" I mean both what the assembler accepts and interprets and what is intended. The compiler output for -S has not been brought to the same standard and may well use SP when FP would be m

Re: [go-nuts] Questions about assembly and calling conventions

2017-03-24 Thread Caleb Spare
I hope someone else knows. I've also been confused by the difference in the offsets in the past, and when I asked about it I was told that the output of go tool compile -S is just different than what you write by hand. Unfortunately I don't think that the -S output is documented. You might have to