On Mon, Jan 16, 2023 at 8:43 AM j2gg0s <
feys...@gmail.com> wrote:
>
> As a newbie of golang's assembly, i cant understand why we MOVQ DX CX twice in runtime.gogo. WHY?
I don't see any MOVQ DX, CX instructions here. Can you clarify by
saying exactly which instructions you are asking about?
Note that MOVQ 0(DX), CX treats DX as a memory address, and moves the
8-byte value at that address into CX. And MOVQ DX, g(CX) treats CX as
a memory address, and moves the value in DX into the address as "g"
bytes offset from the address in CX.
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...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/5fafeb38-1bc7-4a96-b386-41e14c431273n%40googlegroups.com.