From a1f6194f5754a9e11bb0b9c3965dd1cc349697cb Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 7 May 2009 08:21:18 +0000 Subject: [PATCH] change compiler flags for performance. do a make clean first. --- Makefile.gc | 4 +++- Makefile.wii | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.gc b/Makefile.gc index 483697d..badc74c 100644 --- a/Makefile.gc +++ b/Makefile.gc @@ -26,7 +26,9 @@ INCLUDES := include src/platform/wii # options for code generation #--------------------------------------------------------------------------------- -CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE) \ +CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \ + -fomit-frame-pointer -fno-exceptions \ + -Wno-unused-parameter -Wno-strict-aliasing \ -DWORDS_BIGENDIAN CXXFLAGS = $(CFLAGS) LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map diff --git a/Makefile.wii b/Makefile.wii index 299dc02..cdffd7e 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -26,7 +26,9 @@ INCLUDES := include src/platform/wii # options for code generation #--------------------------------------------------------------------------------- -CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE) \ +CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \ + -fomit-frame-pointer -fno-exceptions \ + -Wno-unused-parameter -Wno-strict-aliasing \ -DWORDS_BIGENDIAN CXXFLAGS = $(CFLAGS) LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map -Wl,--cref