From a05c0ef3fb0fd5aeea89ddc6820c3ae465a5e4b5 Mon Sep 17 00:00:00 2001 From: pingflood Date: Tue, 11 Sep 2018 22:40:21 -0300 Subject: [PATCH] Add profile to Makefile and gitignone --- .gitignore | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index da43ebd..c02c68b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.o +*.gcda dist/PocketSNES.dge PocketSNES.opk .opk_data diff --git a/Makefile b/Makefile index 99dbee8..f921508 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,12 @@ INCLUDE = -I pocketsnes \ CFLAGS = -std=gnu++03 $(INCLUDE) -DRC_OPTIMIZED -D__LINUX__ -D__DINGUX__ -DFOREVER_16_BIT $(SDL_CFLAGS) # CFLAGS = -std=gnu++03 $(INCLUDE) -DRC_OPTIMIZED -D__LINUX__ -D__DINGUX__ $(SDL_CFLAGS) -CFLAGS += -O2 -fdata-sections -ffunction-sections -mips32 -march=mips32 -mno-mips16 -fomit-frame-pointer -fno-builtin +CFLAGS += -O3 -fdata-sections -ffunction-sections -mips32 -march=mips32 -mno-mips16 -fomit-frame-pointer -fno-builtin CFLAGS += -fno-common -Wno-write-strings -Wno-sign-compare -ffast-math -ftree-vectorize CFLAGS += -funswitch-loops -fno-strict-aliasing CFLAGS += -DMIPS_XBURST -DFAST_LSB_WORD_ACCESS -DNO_ROM_BROWSER +# CFLAGS += -fprofile-generate -fprofile-dir=/mnt/int_sd/profile +CFLAGS += -fprofile-use CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -fno-math-errno -fno-threadsafe-statics