mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
cleanup and microoptimizations in SH2 hw handling
This commit is contained in:
parent
f740428b81
commit
fe344bd3d8
12 changed files with 308 additions and 247 deletions
9
Makefile
9
Makefile
|
@ -5,10 +5,6 @@ CFLAGS += -I.
|
|||
ifeq "$(DEBUG)" "0"
|
||||
CFLAGS += -O3 -DNDEBUG
|
||||
endif
|
||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
|
||||
# very small caches, avoid optimization options making the binary much bigger
|
||||
CFLAGS += -finline-limit=42 -fno-unroll-loops -fno-ipa-cp-clone # -fno-ipa-cp
|
||||
endif
|
||||
|
||||
# This is actually needed, bevieve me.
|
||||
# If you really have to disable this, set NO_ALIGN_FUNCTIONS elsewhere.
|
||||
|
@ -38,6 +34,11 @@ else # NO_CONFIG_MAK
|
|||
config.mak:
|
||||
endif
|
||||
|
||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
|
||||
# very small caches, avoid optimization options making the binary much bigger
|
||||
CFLAGS += -finline-limit=42 -fno-unroll-loops -fno-ipa-cp -fno-common -fno-stack-protector -ffast-math
|
||||
endif
|
||||
|
||||
# default settings
|
||||
ifeq "$(ARCH)" "arm"
|
||||
use_cyclone ?= 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue