Is there any document about how to add missing instruments in go compiler?

122 views
Skip to first unread message

Cholerae Hu

unread,
Oct 12, 2020, 3:02:35 AM10/12/20
to golang-nuts
I find a doc https://golang.org/doc/asm#unsupported_opcodes, it says "One is to update the assembler to support that instruction". But I can't find any further doc about this. I also find a previous CL which add some instruments https://go-review.googlesource.com/c/go/+/183225, but I don't fully understand the patch, especially the asm6.go part.

Ian Lance Taylor

unread,
Oct 12, 2020, 6:55:24 PM10/12/20
to Cholerae Hu, golang-nuts
On Mon, Oct 12, 2020 at 12:03 AM Cholerae Hu <chole...@gmail.com> wrote:
>
> I find a doc https://golang.org/doc/asm#unsupported_opcodes, it says "One is to update the assembler to support that instruction". But I can't find any further doc about this. I also find a previous CL which add some instruments https://go-review.googlesource.com/c/go/+/183225, but I don't fully understand the patch, especially the asm6.go part.

I'm not aware of any other documentation on the assembler internals.

If you have a specific question we can try to answer it.

Ian
Reply all
Reply to author
Forward
0 new messages