let's try -Ofast
authornotaz <notasas@gmail.com>
Thu, 19 Feb 2026 02:26:14 +0000 (04:26 +0200)
committernotaz <notasas@gmail.com>
Thu, 19 Feb 2026 02:26:14 +0000 (04:26 +0200)
Makefile
Makefile.libretro

index 179e22e..5e377d1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ ifneq ($(DEBUG)$(DEBUG_SYMS), 00)
 CFLAGS += -ggdb
 endif
 ifneq ($(DEBUG), 1)
-CFLAGS += -O3
+CFLAGS += -Ofast
 ifneq ($(ASSERTS), 1)
 CFLAGS += -DNDEBUG
 endif
@@ -197,6 +197,7 @@ endif
 else ifeq "$(DYNAREC)" "ari64"
 OBJS += libpcsxcore/new_dynarec/new_dynarec.o
 OBJS += libpcsxcore/new_dynarec/pcsxmem.o
+libpcsxcore/new_dynarec/new_dynarec.o: CFLAGS += -O2 # less bloat
  ifeq "$(ARCH)" "arm"
  OBJS += libpcsxcore/new_dynarec/linkage_arm.o
  else ifneq (,$(findstring $(ARCH),aarch64 arm64))
index 285c6b5..4dc2f0c 100644 (file)
@@ -335,7 +335,6 @@ else ifeq ($(platform), vita)
        CFLAGS += -fno-optimize-sibling-calls # broken arm->thumb tailcalls?
        CFLAGS += -I$(VITASDK)/include -Ifrontend/vita
        CFLAGS += -DNO_DYLIB
-       CFLAGS_LAST += -O3
        ASFLAGS += -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon
 
        HAVE_NEON_ASM = 1
@@ -361,7 +360,6 @@ else ifeq ($(platform), ctr)
        CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft
        CFLAGS += -mword-relocations
        CFLAGS += -fomit-frame-pointer
-       CFLAGS_LAST += -O3
        # CFLAGS += -funroll-loops # ~500K of bloat
        CFLAGS += -Ifrontend/3ds -I$(CTRULIB)/include
        CFLAGS += -Werror=implicit-function-declaration