[ros-diffs] [ion] 14810: Change optimization settings for retail builds. Change to -Os for smaller executables which are not slower, and enable more advanced optimizations. funitatatime is already included by default in GCC 4.0. Strip debug info from retail builds, since we don't parse the symbols anyways. I hope these options don't break anything, they don't for me; Debugging is unaffected.

ion at svn.reactos.com ion at svn.reactos.com
Tue Apr 26 07:11:01 CEST 2005


Change optimization settings for retail builds. Change to -Os for
smaller executables which are not slower, and enable more advanced
optimizations. funitatatime is already included by default in GCC 4.0.
Strip debug info from retail builds, since we don't parse the symbols
anyways. I hope these options don't break anything, they don't for me;
Debugging is unaffected.
Modified: trunk/reactos/tools/helper.mk
  _____  

Modified: trunk/reactos/tools/helper.mk
--- trunk/reactos/tools/helper.mk	2005-04-26 04:58:32 UTC (rev
14809)
+++ trunk/reactos/tools/helper.mk	2005-04-26 05:10:58 UTC (rev
14810)
@@ -644,16 +644,6 @@

 endif
 
 #
-# Enable Tree-Wide Optimization if Debug is on.
-# Protect uncompatible files here with an ifneq
-# if needed, until their problems can be found
-#
-ifneq ($(DBG),1)
-  MK_CFLAGS += -O2 -Wno-strict-aliasing
-  MK_CPPFLAGS += -O2 -Wno-strict-aliasing
-endif
-
-#
 # Force Optimization for w3seek
 #
 ifeq ($(OPTIMIZE),yes)
@@ -664,6 +654,19 @@
     endif
 endif
 
+#
+# Enable Tree-Wide Optimization if Debug is on.
+# Protect uncompatible files here with an ifneq
+# if needed, until their problems can be found
+#
+ifneq ($(DBG),1)
+  MK_CFLAGS += -Os -Wno-strict-aliasing -funit-at-a-time -fweb -ftracer
-momit-leaf-frame-pointer
+  TARGET_LFLAGS += -Wl,-O1 -Wl,--sort-common -s
+  MK_CFLAGS += -mpreferred-stack-boundary=2
+  MK_CPPFLAGS += -O2 -Wno-strict-aliasing
+  MK_CPPFLAGS += -mpreferred-stack-boundary=2
+endif
+
 ifneq ($(TARGET_LIBS),)
   MK_LIBS := $(TARGET_LIBS) $(MK_LIBS)
 endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050426/39e98d94/attachment.html


More information about the Ros-diffs mailing list