mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[Reatroarch] Optimize snes9x2002 and tyrquake cores (#90)
This commit is contained in:
@@ -65,7 +65,7 @@ index b6af83f..f9f146f 100644
|
|||||||
CXX = /opt/miyoo/usr/bin/arm-linux-g++
|
CXX = /opt/miyoo/usr/bin/arm-linux-g++
|
||||||
AR = /opt/miyoo/usr/bin/arm-linux-ar
|
AR = /opt/miyoo/usr/bin/arm-linux-ar
|
||||||
- fpic := -fPIC
|
- fpic := -fPIC
|
||||||
+ fpic :=
|
+ fpic := -fno-PIC
|
||||||
ARM_ASM = 1
|
ARM_ASM = 1
|
||||||
ASM_CPU = 0
|
ASM_CPU = 0
|
||||||
ASM_SPC700 = 0
|
ASM_SPC700 = 0
|
||||||
@@ -82,7 +82,7 @@ index b6af83f..f9f146f 100644
|
|||||||
+ -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
+ -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
||||||
+ -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
+ -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
||||||
+ -fmerge-all-constants -fno-math-errno \
|
+ -fmerge-all-constants -fno-math-errno \
|
||||||
+ -marm
|
+ -marm -fno-gcse -fno-crossjumping
|
||||||
+ CFLAGS += -DFAST_ALIGNED_LSB_WORD_ACCESS \
|
+ CFLAGS += -DFAST_ALIGNED_LSB_WORD_ACCESS \
|
||||||
+ -DDINGUX \
|
+ -DDINGUX \
|
||||||
+ -DLSB_FIRST \
|
+ -DLSB_FIRST \
|
||||||
|
@@ -1,16 +1,33 @@
|
|||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index ef82d42..bb51b40 100644
|
index ef82d42..b3220b8 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -232,9 +232,9 @@ else ifeq ($(platform), miyoo)
|
@@ -232,9 +232,15 @@ else ifeq ($(platform), miyoo)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
CC = /opt/miyoo/usr/bin/arm-linux-gcc
|
CC = /opt/miyoo/usr/bin/arm-linux-gcc
|
||||||
AR = /opt/miyoo/usr/bin/arm-linux-ar
|
AR = /opt/miyoo/usr/bin/arm-linux-ar
|
||||||
- fpic := -fPIC
|
- fpic := -fPIC
|
||||||
+ fpic :=
|
+ fpic := -fno-PIC
|
||||||
SHARED := -shared -Wl,--version-script=common/libretro-link.T
|
SHARED := -shared -Wl,--version-script=common/libretro-link.T
|
||||||
- CFLAGS += -DDINGUX -D_MIYOO -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s
|
- CFLAGS += -DDINGUX -D_MIYOO -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s
|
||||||
+ CFLAGS += -DDINGUX -D_MIYOO -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -Ofast -fdata-sections -ffunction-sections -fsingle-precision-constant -flto -marm -DARM
|
+ CFLAGS += -DDINGUX -D_MIYOO -ffast-math -mcpu=arm926ej-s -Ofast -fdata-sections -ffunction-sections -fsingle-precision-constant -flto -DARM
|
||||||
|
+ CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
|
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
+ -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
||||||
|
+ -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
||||||
|
+ -fmerge-all-constants -fno-math-errno \
|
||||||
|
+ -marm
|
||||||
HAVE_NETWORKING=0
|
HAVE_NETWORKING=0
|
||||||
|
|
||||||
# Raspberry Pi 1
|
# Raspberry Pi 1
|
||||||
|
@@ -689,8 +695,8 @@ endif
|
||||||
|
CFLAGS += -DDEBUG
|
||||||
|
CXXFLAGS += -DDEBUG
|
||||||
|
else
|
||||||
|
- CFLAGS += -O2 -DNDEBUG
|
||||||
|
- CXXFLAGS += -O2 -DNDEBUG
|
||||||
|
+ CFLAGS += -O3 -DNDEBUG
|
||||||
|
+ CXXFLAGS += -O3 -DNDEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(findstring msvc,$(platform)))
|
||||||
|
Reference in New Issue
Block a user