[dasher: 16/61] Win32 -- turned on whole program optimization and unused code removal
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 16/61] Win32 -- turned on whole program optimization and unused code removal
- Date: Thu, 28 Dec 2017 10:03:56 +0000 (UTC)
commit 438ad07530db0b8bb762f5092c5e5f22ffb86ce9
Author: Ada Majorek <amajorek google com>
Date: Thu Apr 7 12:28:12 2016 -0700
Win32 -- turned on whole program optimization and unused code removal
Result:
Smaller exe file and smaller memory footprint
Src/Common/Common.vcxproj | 2 ++
Src/DasherCore/DasherCore.vcxproj | 2 ++
Src/Win32/Dasher.vcxproj | 8 +++++++-
Src/Win32/DasherControl.vcxproj | 2 ++
4 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/Src/Common/Common.vcxproj b/Src/Common/Common.vcxproj
index 484a3d7..a87810c 100644
--- a/Src/Common/Common.vcxproj
+++ b/Src/Common/Common.vcxproj
@@ -66,6 +66,8 @@
<ProgramDataBaseFileName>.\Target/Release/Intermediate/</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
+ <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
diff --git a/Src/DasherCore/DasherCore.vcxproj b/Src/DasherCore/DasherCore.vcxproj
index e6bcb4c..ea82037 100644
--- a/Src/DasherCore/DasherCore.vcxproj
+++ b/Src/DasherCore/DasherCore.vcxproj
@@ -70,6 +70,8 @@
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat />
+ <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
diff --git a/Src/Win32/Dasher.vcxproj b/Src/Win32/Dasher.vcxproj
index 8bec084..bd984ef 100644
--- a/Src/Win32/Dasher.vcxproj
+++ b/Src/Win32/Dasher.vcxproj
@@ -123,7 +123,10 @@
<ProgramDataBaseFileName>.\Target/Release/Intermediate/</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
- <DebugInformationFormat />
+ <DebugInformationFormat>None</DebugInformationFormat>
+ <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <BufferSecurityCheck>false</BufferSecurityCheck>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -140,6 +143,9 @@
<GenerateDebugInformation>false</GenerateDebugInformation>
<ProgramDatabaseFile />
<SubSystem>Windows</SubSystem>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
diff --git a/Src/Win32/DasherControl.vcxproj b/Src/Win32/DasherControl.vcxproj
index cadc1ec..106f3ef 100644
--- a/Src/Win32/DasherControl.vcxproj
+++ b/Src/Win32/DasherControl.vcxproj
@@ -83,6 +83,8 @@
<PrecompiledHeaderOutputFile>.\Target/Release/Intermediate/DasherControl.pch</PrecompiledHeaderOutputFile>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat />
+ <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)DasherControl.lib</OutputFile>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]