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.

Reply via email to