Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
GA
Enables faster access to certain thread-local storage (TLS) variables.
Syntax
Linux:  |  
      -ftls-model=local-exec  |  
     
Windows:  |  
      /GA  |  
     
Arguments
None
Default
OFF  |  
      Default access to TLS variables is in effect.  |  
     
Description
This option enables faster access to certain thread-local storage (TLS) variables. When you compile your main executable (.EXE) program with this option, it allows faster access to TLS variables declared with the __declspec(thread) specification.
Note that if you use this option to compile .DLLs, you may get program errors.
Option-ftls-model=local-exec is a Clang option. For more information about this option, see the Clang documentation.
IDE Equivalent
Visual Studio: Optimization > Optimize for Windows Applications
Eclipse: None
Alternate Options
None