Other examples I found in the runtime seem to refer to "go_tls.h". My guess is the /doc/asm page is out of date.
Damian On Wednesday, January 24, 2018 at 7:26:18 PM UTC-8, Caleb Spare wrote: > > 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 "get_tls" > > The go_asm.h header seems to be generated by the toolchain rather than > being a file I can take a look at. Does anyone know more about how it > works? Is it only available to runtime code (though that's not > mentioned on https://golang.org/doc/asm)? > > Thanks! > Caleb > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
