what is asm6 and span6 for?

107 views
Skip to first unread message

xie cui

unread,
Mar 29, 2021, 10:45:01 AM3/29/21
to golang-nuts
https://github.com/golang/go/blob/master/src/cmd/internal/obj/x86/asm6.go
this file named asm6, and there is a func named span6, what is 6 for here?

Andy Balholm

unread,
Mar 29, 2021, 11:41:43 AM3/29/21
to xie cui, golang-nuts

It is likely a code for GOARCH=amd64. Back in the distant past, there were separate Go compilers for different CPU architectures. The one for amd64 was 6g, for 386 it was 8g, etc.

It looks like the x86 directory is code that was originally written for amd64, and then generalized to cover 386 as well.

Andy

On 3/29/21 7:45 AM, xie cui wrote:
https://github.com/golang/go/blob/master/src/cmd/internal/obj/x86/asm6.go
this file named asm6, and there is a func named span6, what is 6 for here?
--
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/a31873c7-15c3-4260-81b1-cec57ebe3867n%40googlegroups.com.

Fannie Zhang

unread,
Mar 30, 2021, 1:18:40 PM3/30/21
to golang-nuts
On Monday, March 29, 2021 at 10:45:01 PM UTC+8 cuiw...@gmail.com wrote:
https://github.com/golang/go/blob/master/src/cmd/internal/obj/x86/asm6.go
this file named asm6, and there is a func named span6, what is 6 for here?


Fannie

Reply all
Reply to author
Forward
0 new messages