W3cubDocs

/GCC 12

6.60.28 RISC-V Built-in Functions

These built-in functions are available for the RISC-V family of processors.

Built-in Function: void * __builtin_thread_pointer (void)

Returns the value that is currently set in the ‘tp’ register.

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/RISC-V-Built-in-Functions.html