User Tools

Site Tools


go:internals:get_tls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
go:internals:get_tls [2019/03/04 10:29] – created fgmgo:internals:get_tls [2019/03/04 12:00] – [See also] fgm
Line 1: Line 1:
 ====== get tls ====== ====== get tls ======
  
-''get_tls(r)'' is an assembly macro for retrieving the location (address) of [[Thread local storage"]] (TLS is thus an acronym). It is defined in //automatically generated// (during Go building) file ''asm.h''.+''get_tls(r)'' is an assembly macro for retrieving the location (address) of [[Thread-local storage"]] (TLS is thus an acronym). It is defined in //automatically generated// (during Go building) file ''asm.h''.
  
 For ''GOOS=386'', ''get_tls(r)'' resolves to: ''MOVL 0x2c(FS), r'' For ''GOOS=386'', ''get_tls(r)'' resolves to: ''MOVL 0x2c(FS), r''
Line 7: Line 7:
 ===== See also ===== ===== See also =====
  
-  * [[Thread local storage]]+  * [[Thread-local storage]]
   * [[FS]]   * [[FS]]
   * [[asm]]   * [[asm]]
  
go/internals/get_tls.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1