description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /GA (Optimize for Windows Application) |
/GA (Optimize for Windows Application) |
11/04/2016 |
|
|
be97323e-15a0-4836-862c-95980b51926a |
Results in more efficient code for an .exe file for accessing thread-local storage (TLS) variables.
/GA
/GA speeds access to data declared with __declspec(thread) in a Windows-based program. When this option is set, the __tls_index macro is assumed to be 0.
Using /GA for a DLL can result in bad code generation.
-
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > C/C++ > Command Line property page.
-
Enter the compiler option in the Additional Options box.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.