Re: [go-nuts] get_tls macro and friends

2018-01-24 Thread Rob Pike
If you run go build with the -work flag, you can see the directory in which the build happens, and go_asm is written there. -rob On Thu, Jan 25, 2018 at 2:25 PM, Caleb Spare wrote: > Quick question about the Go assembler. > > I'm trying to use the get_tls and related macros mentioned near the

Re: [go-nuts] get_tls macro and friends

2018-01-24 Thread Rob Pike
s/go build/go test runtime/ On Thu, Jan 25, 2018 at 3:42 PM, Rob Pike wrote: > If you run go build with the -work flag, you can see the directory in > which the build happens, and go_asm is written there. > > -rob > > > On Thu, Jan 25, 2018 at 2:25 PM, Caleb Spare wrote: > >> Quick question abo

[go-nuts] get_tls macro and friends

2018-01-24 Thread Caleb Spare
Quick question about the Go assembler. I'm trying to use the get_tls and related macros mentioned near the bottom of https://golang.org/doc/asm. Although the line # include "go_asm.h" doesn't give an error, subsequent lines where I use the macro fail: get_tls(CX) // unrecognized instruction "g