More context regarding your question might help. Why are you trying to understand the assembly code? Are you trying to debug a failure in the wild? Are you trying to make the implementation more efficient? Are you simply curious how the implementation works? Your question is rather broad and likely to require a lot of explanatory text. It is unlikely someone will write that explanatory text without a good reason. They might give you a link, like Ian did, to a document that describes the high level details. But it is unlikely there is a public document, like an enhancement proposal, that answers your question at the level of detail of specific instruction sequences.
On Tue, Sep 26, 2023 at 9:10 PM j2gg0s <feys1...@gmail.com> wrote: > Thanks @lan > > Already read it, I actually started here. > > What I can't understand is x64 rip-relative address. > > leaq 132795(%rip), %rcx # 0x49b4e8 <go:func.*+0x220> > > why 132795, and what is loaded into rcx > 在2023年9月27日星期三 UTC+8 09:38:17<Ian Lance Taylor> 写道: > >> On Tue, Sep 26, 2023 at 7:43 AM j2gg0s <feys...@gmail.com> wrote: >> > >> > How to understand assmbly code ` 47ae26: 48 8d 0d bb 06 02 00 leaq >> 132795(%rip), %rcx # 0x49b4e8 <go:func.*+0x220>` >> >> The best place to start is >> >> >> https://go.googlesource.com/proposal/+/refs/heads/master/design/34481-opencoded-defers.md >> >> 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/69d8ca43-d4e7-4945-ab94-9951fa51188dn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/69d8ca43-d4e7-4945-ab94-9951fa51188dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-%3Dz0n4K3HRJiniJ94Ph2JJOU7c1ypQ61hGzsVQ4fG7dA%40mail.gmail.com.