From d03f8e18e82aaa5a381d5df5977c02d9305628a8 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 25 Feb 2015 15:58:53 +0100 Subject: [PATCH] (PSP) add compiler flags for better code generation (-falign-functions=32 being the most significant flag in this case, ~30% slower code execution without it). --- Makefile.libretro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 2061f71..0045aaa 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -126,6 +126,9 @@ else ifeq ($(platform), psp1) CXX = psp-g++$(EXE_EXT) AR = psp-ar$(EXE_EXT) PLATFORM_DEFINES := -DPSP -G0 -DLSB_FIRST -DHAVE_ASPRINTF + PLATFORM_DEFINES += -march=allegrex -mfp32 -mgp32 -mlong32 -mabi=eabi + PLATFORM_DEFINES += -fomit-frame-pointer -fstrict-aliasing + PLATFORM_DEFINES += -falign-functions=32 -falign-loops -falign-labels -falign-jumps STATIC_LINKING = 1 EXTERNAL_ZLIB = 1